/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package arayuz;
import astroLib.*;
import java.util.Calendar;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import tuvalLib.*;
import lang.LocalizationSupport;
import locationData.LocationParse;
import record.*;
/**
* @author mehmetrg
*/
public class CepMuvakkitT extends MIDlet implements CommandListener {
private boolean midletPaused = false;
//<editor-fold defaultstate="collapsed" desc=" Generated Fields ">//GEN-BEGIN:|fields|0|
private java.util.Hashtable __previousDisplayables = new java.util.Hashtable();
private List secenekler;
private TextBox textBoxKerahat;
private SCanvas sCanvas;
private CompassCanvas compassCanvas;
private SunMoonCanvas sunMoonCanvas;
private List continentList;
private Form citySelectForm;
private ChoiceGroup dayLightSavingGrp;
private TextField altitudeTxtFld;
private TextField temperatureTxtFld;
private TextField pressureTxtFld;
private ChoiceGroup timeZoneSrcGrp;
private StringItem stringItem;
private TextField longTxtFld;
private TextField locationTxtFld;
private TextField timeZoneTxtFld;
private TextField latitudeTxtFld;
private Form warningForm;
private ChoiceGroup gunesWarnGrp;
private ChoiceGroup imsakWarnGrp;
private TextField ogleEWTxtFld;
private TextField ikindiEWTxtFld;
private TextField imsakEWTxtFld;
private TextField gunesEWTxtFld;
private ChoiceGroup ikindiWarnGrp;
private ChoiceGroup ogleWarnGrp;
private TextField yatsiEWTxtFld;
private TextField aksamEWTxtFld;
private ChoiceGroup aksamWarnGrp;
private ChoiceGroup yatsiWarnGrp;
private Form setCalcParam;
private TextField temkinGunesTxtFld;
private TextField temkinImsakTxtFld;
private TextField duskAngleTxtFld;
private TextField dawnAngleTxtFld;
private ChoiceGroup sectChoiceGrp;
private TextField temkinMagribTxtFld;
private TextField temkinYatsiTxtFld;
private TextField temkinOgleTxtFld;
private TextField temkinAsrTxtFld;
private Form extremeLatitudes;
private ChoiceGroup fixedIshaChoiceGrp;
private TextField fixedIshaTxtFld;
private ChoiceGroup estimationChoiceGrp;
private TextField baseLatTxtFld;
private ChoiceGroup amountNightChioceGrp;
private TextBox defaultTextBox;
private Alert alert;
private KerahatCanvas kerahatCanvas;
private Form calculationMethod;
private ChoiceGroup calculationMethodGrp;
private Form townForm;
private ChoiceGroup townGrp;
private Form cityForm;
private ChoiceGroup cityGrp;
private Form countryForm;
private ChoiceGroup countryGrp;
private Form optionsForm;
private ChoiceGroup isFullScreenGrp;
private ChoiceGroup isMilitaryGrp;
private Gauge volumeGauge;
private TextField HijriCorrectionTxtFld;
private ChoiceGroup fontSizeGrp;
private ChoiceGroup screenTopGrp;
private TextBox holyDayTxt;
private Command backCommand;
private Command useEstimationCmd;
private Command moreCommand;
private Command useGPS;
private Command moonInfoCommand;
private Command saveCmd;
private Command helpCommand;
private Command forwardCmd;
private Command exitCommand1;
//</editor-fold>//GEN-END:|fields|0|
private LocationPrefer locationPrefer;
private CalculationPrefer calPref;
private WarningPrefer warnPref;
private OptionPrefer optionPref;
private LocationParse locationParse;
private MoonTimes moonRiseSet;
private String continentName;
private double[] field = new double[6];
private double magvar;
private Settings forOneDay;
private WarningPrefer warningPref;
private EarthPosition position;
private SunMoonPosition mSunMoonPosition;
/**
* The CepMuvakkitT constructor.
*/
public CepMuvakkitT() {
}
//<editor-fold defaultstate="collapsed" desc=" Generated Methods ">//GEN-BEGIN:|methods|0|
/**
* Switches a display to previous displayable of the current displayable.
* The <code>display</code> instance is obtain from the <code>getDisplay</code> method.
*/
private void switchToPreviousDisplayable() {
Displayable __currentDisplayable = getDisplay().getCurrent();
if (__currentDisplayable != null) {
Displayable __nextDisplayable = (Displayable) __previousDisplayables.get(__currentDisplayable);
if (__nextDisplayable != null) {
switchDisplayable(null, __nextDisplayable);
}
}
}
//</editor-fold>//GEN-END:|methods|0|
//<editor-fold defaultstate="collapsed" desc=" Generated Method: initialize ">//GEN-BEGIN:|0-initialize|0|0-preInitialize
/**
* Initilizes the application.
* It is called only once when the MIDlet is started. The method is called before the <code>startMIDlet</code> method.
*/
private void initialize() {//GEN-END:|0-initialize|0|0-preInitialize
// write pre-initialize user code here
//GEN-LINE:|0-initialize|1|0-postInitialize
// write post-initialize user code here
}//GEN-BEGIN:|0-initialize|2|
//</editor-fold>//GEN-END:|0-initialize|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Method: startMIDlet ">//GEN-BEGIN:|3-startMIDlet|0|3-preAction
/**
* Performs an action assigned to the Mobile Device - MIDlet Started point.
*/
public void startMIDlet() {//GEN-END:|3-startMIDlet|0|3-preAction
initializeDataBase();
//conductNewParameters();
// calculateSalatTimes();
// setWarnings ();
// write pre-action user code here
isItFirstTime();//GEN-LINE:|3-startMIDlet|1|3-postAction
//switchDisplayable(null, getWaitScreen());
//recordedTime = System.currentTimeMillis();
// sTimer = new Timer();
//sTimer.scheduleAtFixedRate(new RefreshTimerTask(), REFRESHMILLIS, REFRESHMILLIS);
// write post-action user code here
}//GEN-BEGIN:|3-startMIDlet|2|
//</editor-fold>//GEN-END:|3-startMIDlet|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Method: resumeMIDlet ">//GEN-BEGIN:|4-resumeMIDlet|0|4-preAction
/**
* Performs an action assigned to the Mobile Device - MIDlet Resumed point.
*/
public void resumeMIDlet() {//GEN-END:|4-resumeMIDlet|0|4-preAction
// write pre-action user code here
//GEN-LINE:|4-resumeMIDlet|1|4-postAction
// write post-action user code here
}//GEN-BEGIN:|4-resumeMIDlet|2|
//</editor-fold>//GEN-END:|4-resumeMIDlet|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Method: switchDisplayable ">//GEN-BEGIN:|5-switchDisplayable|0|5-preSwitch
/**
* Switches a current displayable in a display. The <code>display</code> instance is taken from <code>getDisplay</code> method. This method is used by all actions in the design for switching displayable.
* @param alert the Alert which is temporarily set to the display; if <code>null</code>, then <code>nextDisplayable</code> is set immediately
* @param nextDisplayable the Displayable to be set
*/
public void switchDisplayable(Alert alert, Displayable nextDisplayable) {//GEN-END:|5-switchDisplayable|0|5-preSwitch
// write pre-switch user code here
Display display = getDisplay();//GEN-BEGIN:|5-switchDisplayable|1|5-postSwitch
Displayable __currentDisplayable = display.getCurrent();
if (__currentDisplayable != null && nextDisplayable != null) {
__previousDisplayables.put(nextDisplayable, __currentDisplayable);
}
if (alert == null) {
display.setCurrent(nextDisplayable);
} else {
display.setCurrent(alert, nextDisplayable);
}//GEN-END:|5-switchDisplayable|1|5-postSwitch
// write post-switch user code here
}//GEN-BEGIN:|5-switchDisplayable|2|
//</editor-fold>//GEN-END:|5-switchDisplayable|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Method: commandAction for Displayables ">//GEN-BEGIN:|7-commandAction|0|7-preCommandAction
/**
* Called by a system to indicated that a command has been invoked on a particular displayable.
* @param command the Command that was invoked
* @param displayable the Displayable where the command was invoked
*/
public void commandAction(Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction
// write pre-action user code here
if (displayable == calculationMethod) {//GEN-BEGIN:|7-commandAction|1|438-preAction
if (command == backCommand) {//GEN-END:|7-commandAction|1|438-preAction
// write pre-action user code here
switchDisplayable(null, getSecenekler());//GEN-LINE:|7-commandAction|2|438-postAction
// write post-action user code here
} else if (command == forwardCmd) {//GEN-LINE:|7-commandAction|3|445-preAction
// write pre-action user code here
switchDisplayable(null, getSetCalcParam());//GEN-LINE:|7-commandAction|4|445-postAction
calPref.setCalculationMethod((byte)calculationMethodGrp.getSelectedIndex());
temkinImsakTxtFld.setString(calPref.getTemkinImsak()+"");
temkinGunesTxtFld.setString(calPref.getTemkinGunes()+"");
temkinOgleTxtFld.setString(calPref.getTemkinOgle()+"");
temkinAsrTxtFld.setString(calPref.getTemkinAsr()+"");
temkinMagribTxtFld.setString(calPref.getTemkinMagrib()+"");
temkinYatsiTxtFld.setString(calPref.getTemkinYatsi()+"");
duskAngleTxtFld.setString(calPref.getDuskAngle()+"");
dawnAngleTxtFld.setString(calPref.getDawnAngle()+"");
// altitudeTxtFld.setString(calPref.getAltitude()+"");
sectChoiceGrp.setSelectedIndex(calPref.getSectChoice(),true);
/*
if (calPref.getCalculationMethod()==6)
{ dawnAngleTxtFld.setConstraints(5);
duskAngleTxtFld.setConstraints(5);
}*/
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|5|468-preAction
} else if (displayable == cityForm) {
if (command == backCommand) {//GEN-END:|7-commandAction|5|468-preAction
// write pre-action user code here
switchDisplayable(null, getCountryForm());//GEN-LINE:|7-commandAction|6|468-postAction
// write post-action user code here
} else if (command == forwardCmd) {//GEN-LINE:|7-commandAction|7|469-preAction
// write pre-action user code here
switchDisplayable(null, getTownForm());//GEN-LINE:|7-commandAction|8|469-postAction
townGrp=locationParse.modifyTownChoiceGroup(locationParse.getSelectedCountry(countryGrp.getSelectedIndex()), locationParse.getSelectedCity(cityGrp.getSelectedIndex()), townGrp);
}//GEN-BEGIN:|7-commandAction|9|52-preAction
} else if (displayable == citySelectForm) {
if (command == backCommand) {//GEN-END:|7-commandAction|9|52-preAction
countryForm=null;// write pre-action user code her
countryGrp=null;
cityGrp=null;
cityForm=null;
switchDisplayable(null, getSecenekler());//GEN-LINE:|7-commandAction|10|52-postAction
// write post-action user code here
} else if (command == helpCommand) {//GEN-LINE:|7-commandAction|11|415-preAction
// write pre-action user code here
switchDisplayable(null, getDefaultTextBox());//GEN-LINE:|7-commandAction|12|415-postAction
getDefaultTextBox().setString(LocalizationSupport.getMessage("CITYSELECT"));
getDefaultTextBox().setString(LocalizationSupport.getMessage("CUSTOMTXT"));
} else if (command == saveCmd) {//GEN-LINE:|7-commandAction|13|371-preAction
locationPrefer.setLocationParameters(
locationTxtFld.getString(),
Float.parseFloat(latitudeTxtFld.getString()),
Float.parseFloat(longTxtFld.getString()),
timeZoneSrcGrp.getSelectedIndex(),
Float.parseFloat(timeZoneTxtFld.getString()),
dayLightSavingGrp.isSelected(0),
(short)Float.parseFloat(altitudeTxtFld.getString()),
Short.parseShort(temperatureTxtFld.getString()),
Short.parseShort(pressureTxtFld.getString())
);
locationPrefer.saveToDataBase();
//killOldTimerTask();
conductNewParameters();
//updateCanvasText ();
//setWarnings ();
isItFirstTimeCalcMethod();//GEN-LINE:|7-commandAction|14|371-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|15|42-preAction
} else if (displayable == compassCanvas) {
if (command == backCommand) {//GEN-END:|7-commandAction|15|42-preAction
// write pre-action user code here
switchDisplayable(null, getSCanvas());//GEN-LINE:|7-commandAction|16|42-postAction
// write post-action user code here
} else if (command == helpCommand) {//GEN-LINE:|7-commandAction|17|412-preAction
// write pre-action user code here
switchDisplayable(null, getDefaultTextBox());//GEN-LINE:|7-commandAction|18|412-postAction
getDefaultTextBox().setString(LocalizationSupport.getMessage("QIBLELOCTXT"));
} else if (command == moonInfoCommand) {//GEN-LINE:|7-commandAction|19|166-preAction
sunMoonCanvas = null;
switchDisplayable(null, getSunMoonCanvas());//GEN-LINE:|7-commandAction|20|166-postAction
}//GEN-BEGIN:|7-commandAction|21|521-preAction
} else if (displayable == continentList) {
if (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|21|521-preAction
// write pre-action user code here
continentListAction();//GEN-LINE:|7-commandAction|22|521-postAction
// write post-action user code here
} else if (command == backCommand) {//GEN-LINE:|7-commandAction|23|535-preAction
// write pre-action user code here
switchDisplayable(null, getSecenekler());//GEN-LINE:|7-commandAction|24|535-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|25|464-preAction
} else if (displayable == countryForm) {
if (command == backCommand) {//GEN-END:|7-commandAction|25|464-preAction
countryForm=null;// write pre-action user code her
countryGrp=null;
switchDisplayable(null, getSecenekler());//GEN-LINE:|7-commandAction|26|464-postAction
// write post-action user code here
} else if (command == forwardCmd) {//GEN-LINE:|7-commandAction|27|460-preAction
switchDisplayable(null, getCityForm());//GEN-LINE:|7-commandAction|28|460-postAction
cityGrp=locationParse.modifyCityChoiceGroup(locationParse.getSelectedCountry(countryGrp.getSelectedIndex()), cityGrp);
}//GEN-BEGIN:|7-commandAction|29|195-preAction
} else if (displayable == defaultTextBox) {
if (command == backCommand) {//GEN-END:|7-commandAction|29|195-preAction
// write pre-action user code here
switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|30|195-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|31|588-preAction
} else if (displayable == extremeLatitudes) {
if (command == backCommand) {//GEN-END:|7-commandAction|31|588-preAction
// write pre-action user code here
switchDisplayable(null, getCalculationMethod());//GEN-LINE:|7-commandAction|32|588-postAction
// write post-action user code here
} else if (command == helpCommand) {//GEN-LINE:|7-commandAction|33|589-preAction
// write pre-action user code here
switchDisplayable(null, getDefaultTextBox());//GEN-LINE:|7-commandAction|34|589-postAction
// write post-action user code here
} else if (command == saveCmd) {//GEN-LINE:|7-commandAction|35|587-preAction
calPref.setEstimationParameters(
(byte)estimationChoiceGrp.getSelectedIndex(),
Float.parseFloat(baseLatTxtFld.getString()),
(byte)amountNightChioceGrp.getSelectedIndex(),
getFixedIshaChoiceGrp().isSelected(0),
Byte.parseByte(getFixedIshaTxtFld().getString())
);
calPref.saveCalcPreferInfo();
conductNewParameters();
// write pre-action user code here getEstimationChoiceGrp(), getBaseLatTxtFld(), getAmountNightChioceGrp()
switchDisplayable(getAlert(), getSCanvas());//GEN-LINE:|7-commandAction|36|587-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|37|494-preAction
} else if (displayable == holyDayTxt) {
if (command == backCommand) {//GEN-END:|7-commandAction|37|494-preAction
// write pre-action user code here
switchDisplayable(null, getKerahatCanvas());//GEN-LINE:|7-commandAction|38|494-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|39|511-preAction
} else if (displayable == optionsForm) {
if (command == backCommand) {//GEN-END:|7-commandAction|39|511-preAction
// write pre-action user code here
switchDisplayable(null, getSecenekler());//GEN-LINE:|7-commandAction|40|511-postAction
// write post-action user code here
} else if (command == saveCmd) {//GEN-LINE:|7-commandAction|41|510-preAction
optionPref.setOptionParameters(
(byte)fontSizeGrp.getSelectedIndex(),
(byte)volumeGauge.getValue(),
(byte)screenTopGrp.getSelectedIndex(),
Byte.parseByte(getHijriCorrectionTxtFld().getString()),
isFullScreenGrp.isSelected(0),
isMilitaryGrp.isSelected(0));
optionPref.saveToDataBase();
//optionPref.saveToDataBase();
// sCanvas.setFontSize(optionPref.getFontSize());
//this sCanvas.setFullScreenMode(optionPref.getIsFullScreen());
//sCanvas.set24HourFormat(optionPref.getIsMilitary());
// killOldTimerTask();
conductNewParameters();
//calculateSalatTimes();
// updateCanvasText();
// setWarnings ();
// sCanvas=null;
switchDisplayable(getAlert(), getSCanvas());//GEN-LINE:|7-commandAction|42|510-postAction
//System.out.println("optionPref.getIsMilitary(): "+optionPref.getIsMilitary());
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|43|18-preAction
} else if (displayable == secenekler) {
if (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|43|18-preAction
// write pre-action user code here
seceneklerAction();//GEN-LINE:|7-commandAction|44|18-postAction
// write post-action user code here
} else if (command == backCommand) {//GEN-LINE:|7-commandAction|45|46-preAction
// write pre-action user code here
switchDisplayable(null, getSCanvas());//GEN-LINE:|7-commandAction|46|46-postAction
// write post-action user code here
} else if (command == exitCommand1) {//GEN-LINE:|7-commandAction|47|431-preAction
// write pre-action user code here
exitMIDlet();//GEN-LINE:|7-commandAction|48|431-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|49|78-preAction
} else if (displayable == setCalcParam) {
if (command == backCommand) {//GEN-END:|7-commandAction|49|78-preAction
switchDisplayable(null, getSecenekler());//GEN-LINE:|7-commandAction|50|78-postAction
// write post-action user code here
} else if (command == helpCommand) {//GEN-LINE:|7-commandAction|51|413-preAction
// write pre-action user code here
switchDisplayable(null, getDefaultTextBox());//GEN-LINE:|7-commandAction|52|413-postAction
getDefaultTextBox().setString(LocalizationSupport.getMessage("CALCULATIONTXT"));
} else if (command == saveCmd) {//GEN-LINE:|7-commandAction|53|210-preAction
// System.out.println(temkinImsakTxtFld.getString());
calPref.setCalculationParameters(
Byte.parseByte(getTemkinImsakTxtFld().getString()),
Byte.parseByte(getTemkinGunesTxtFld().getString()),
Byte.parseByte(getTemkinOgleTxtFld().getString()),
Byte.parseByte(getTemkinAsrTxtFld().getString()),
Byte.parseByte(getTemkinMagribTxtFld().getString()),
Byte.parseByte(getTemkinYatsiTxtFld().getString()),
Double.parseDouble(getDawnAngleTxtFld().getString()),
Double.parseDouble(getDuskAngleTxtFld().getString()),
(byte)getSectChoiceGrp().getSelectedIndex());
/* if (calPref.getCalculationMethod()==6)
{
getDawnAngleTxtFld().setConstraints(TextField.ANY | TextField.PLAIN);
getDuskAngleTxtFld().setConstraints(TextField.ANY | TextField.PLAIN);
}*/
calPref.saveCalcPreferInfo();
//initialSTFromObject();
//killOldTimerTask();
conductNewParameters();
// calculateSalatTimes();
//updateCanvasText ();
// setWarnings ();
// write pre-action user code here
isExtremeLatitude();//GEN-LINE:|7-commandAction|54|210-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|55|572-preAction
} else if (displayable == sunMoonCanvas) {
if (command == backCommand) {//GEN-END:|7-commandAction|55|572-preAction
// write pre-action user code here
switchDisplayable(null, getCompassCanvas());//GEN-LINE:|7-commandAction|56|572-postAction
// write post-action user code here
} else if (command == moreCommand) {//GEN-LINE:|7-commandAction|57|577-preAction
//sunMoonCanvas = null;
switchDisplayable(null, getDefaultTextBox());//GEN-LINE:|7-commandAction|58|577-postAction
position = new EarthPosition(Settings.locationPrefer.getLatitude(), Settings.locationPrefer.getLongitude());
moonRiseSet= new MoonTimes (position,getMJD0h());
magvar=MagDeclination.SGMagVar(position, getMJD0h(), locationPrefer.getAltitude(), field);
mSunMoonPosition=new SunMoonPosition (position);
String infoTxt=lang.LocalizationSupport.getMessage("QIBLAANGLETRUENORTH")+" : "
+APC_Time.formatDoubleValue(mSunMoonPosition.getDestinationHeading().getHeading())+"º"+"\n"+
LocalizationSupport.getMessage("QIBLADISTANCE")+" : "+
mSunMoonPosition.getDestinationHeading().getKiloMetres()+"km"+"\n"+
LocalizationSupport.getMessage("MOONPHASE")+" : "+
APC_Time.formatDoubleValue(mSunMoonPosition.getMoonPhase()*100)+"%"+"\n"+
LocalizationSupport.getMessage("MOONAZIMUTH")+" : "+
APC_Time.formatDoubleValue(mSunMoonPosition.getMoonPosition().getAzimuth())+"º"+"\n"+
LocalizationSupport.getMessage("ALTITUDE")+" : "+
APC_Time.formatDoubleValue(mSunMoonPosition.getMoonPosition().getElevation())+"º"+"\n"+
LocalizationSupport.getMessage("MOONRISE")+" : "+
APC_Time.Time(moonRiseSet.getMoonRiseTime(),optionPref.getIsMilitary())+"\n"+
LocalizationSupport.getMessage("MOONSET")+" : "+
APC_Time.Time(moonRiseSet.getMoonSetTime(),optionPref.getIsMilitary())+"\n"+
LocalizationSupport.getMessage("MAGVAR")+" : "+
APC_Time.formatDoubleValue(magvar)+"º"+"\n"+
LocalizationSupport.getMessage("QIBLAMAGNORTH2")+" : "+
APC_Time.formatDoubleValue(mSunMoonPosition.getDestinationHeading().getHeading()-magvar)+"º"+"\n" +
LocalizationSupport.getMessage("MagneticFields")+"\n" +
LocalizationSupport.getMessage("Bx")+" : "+
(int) field[3]+" nTesla" + LocalizationSupport.getMessage("NS")+"\n" +
LocalizationSupport.getMessage("By")+" : "+
(int) field[4]+" nTesla "+ LocalizationSupport.getMessage("EW")+"\n"+
LocalizationSupport.getMessage("Bz")+" : "+
(int) field[5]+" nTesla"+ LocalizationSupport.getMessage("UD")+"\n" ;
defaultTextBox.setString(infoTxt);
}//GEN-BEGIN:|7-commandAction|59|567-preAction
} else if (displayable == textBoxKerahat) {
if (command == backCommand) {//GEN-END:|7-commandAction|59|567-preAction
// write pre-action user code here
switchDisplayable(null, getKerahatCanvas());//GEN-LINE:|7-commandAction|60|567-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|61|474-preAction
} else if (displayable == townForm) {
if (command == backCommand) {//GEN-END:|7-commandAction|61|474-preAction
// write pre-action user code here
switchDisplayable(null, getCityForm());//GEN-LINE:|7-commandAction|62|474-postAction
// write post-action user code here
} else if (command == forwardCmd) {//GEN-LINE:|7-commandAction|63|473-preAction
// write pre-action user code here
switchDisplayable(null, getCitySelectForm());//GEN-LINE:|7-commandAction|64|473-postAction
locationTxtFld.setString(locationParse.getSelectedTown(townGrp.getSelectedIndex()));
latitudeTxtFld.setString(locationParse.getSelectedLatitude(townGrp.getSelectedIndex())+"");
longTxtFld.setString(locationParse.getSelectedLongitude(townGrp.getSelectedIndex())+"");
timeZoneTxtFld.setString(locationParse.getTimeZoneValue(countryGrp.getSelectedIndex())+"");
getDayLightSavingGrp().setSelectedIndex(0, getDSTEstimationbyLat(locationParse.getSelectedLatitude(townGrp.getSelectedIndex())));
altitudeTxtFld.setString(locationPrefer.getAltitude()+"");
temperatureTxtFld.setString(locationPrefer.getTemperature()+"");
pressureTxtFld.setString(locationPrefer.getPressure()+"");
}//GEN-BEGIN:|7-commandAction|65|79-preAction
} else if (displayable == warningForm) {
if (command == backCommand) {//GEN-END:|7-commandAction|65|79-preAction
// write pre-action user code here
switchDisplayable(null, getSecenekler());//GEN-LINE:|7-commandAction|66|79-postAction
// write post-action user code here
} else if (command == helpCommand) {//GEN-LINE:|7-commandAction|67|417-preAction
// write pre-action user code here
switchDisplayable(null, getDefaultTextBox());//GEN-LINE:|7-commandAction|68|417-postAction
getDefaultTextBox().setString(LocalizationSupport.getMessage("PLAYAZAN"));
} else if (command == saveCmd) {//GEN-LINE:|7-commandAction|69|209-preAction
//initialSTFromObject();
warnPref.setEarlyWarningMinutes(
Byte.parseByte(imsakEWTxtFld.getString()),
Byte.parseByte(gunesEWTxtFld.getString()),
Byte.parseByte(ogleEWTxtFld.getString()),
Byte.parseByte(ikindiEWTxtFld.getString()),
Byte.parseByte(aksamEWTxtFld.getString()),
Byte.parseByte(yatsiEWTxtFld.getString()));
warnPref.setWarningType(
(byte)imsakWarnGrp.getSelectedIndex(),
(byte)gunesWarnGrp.getSelectedIndex(),
(byte)ogleWarnGrp.getSelectedIndex(),
(byte)ikindiWarnGrp.getSelectedIndex(),
(byte)aksamWarnGrp.getSelectedIndex(),
(byte)yatsiWarnGrp.getSelectedIndex()
);
warnPref.saveWarnPreferInfo();
//initialSTFromObject();
// killOldTimerTask();
conductNewParameters();
// calculateSalatTimes();
// updateCanvasText ();
// setWarnings ();
// write pre-action user code here
switchDisplayable(getAlert(), getSCanvas());//GEN-LINE:|7-commandAction|70|209-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|71|7-postCommandAction
}//GEN-END:|7-commandAction|71|7-postCommandAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|72|
//</editor-fold>//GEN-END:|7-commandAction|72|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: secenekler ">//GEN-BEGIN:|17-getter|0|17-preInit
/**
* Returns an initiliazed instance of secenekler component.
* @return the initialized component instance
*/
public List getSecenekler() {
if (secenekler == null) {//GEN-END:|17-getter|0|17-preInit
// write pre-init user code here
secenekler = new List(LocalizationSupport.getMessage("PROPERTIES"), Choice.IMPLICIT);//GEN-BEGIN:|17-getter|1|17-postInit
secenekler.append(LocalizationSupport.getMessage("SELECTCITY"), null);
secenekler.append(LocalizationSupport.getMessage("QIBLADIRECTION"), null);
secenekler.append(LocalizationSupport.getMessage("KERAHAT"), null);
secenekler.append(LocalizationSupport.getMessage("WARNINGTYPE"), null);
secenekler.append(LocalizationSupport.getMessage("CALCULATIONMETHOD"), null);
secenekler.append(LocalizationSupport.getMessage("OPTIONS"), null);
secenekler.append(LocalizationSupport.getMessage("ABOUT"), null);
secenekler.addCommand(getBackCommand());
secenekler.addCommand(getExitCommand1());
secenekler.setCommandListener(this);
secenekler.setSelectedFlags(new boolean[] { false, false, false, false, false, false, false });//GEN-END:|17-getter|1|17-postInit
// write post-init user code here
}//GEN-BEGIN:|17-getter|2|
return secenekler;
}
//</editor-fold>//GEN-END:|17-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Method: seceneklerAction ">//GEN-BEGIN:|17-action|0|17-preAction
/**
* Performs an action assigned to the selected list element in the secenekler component.
*/
public void seceneklerAction() {//GEN-END:|17-action|0|17-preAction
// enter pre-action user code here
String __selectedString = getSecenekler().getString(getSecenekler().getSelectedIndex());//GEN-BEGIN:|17-action|1|33-preAction
if (__selectedString != null) {
if (__selectedString.equals(LocalizationSupport.getMessage("SELECTCITY"))) {//GEN-END:|17-action|1|33-preAction
switchDisplayable(null, getContinentList());//GEN-LINE:|17-action|2|33-postAction
} else if (__selectedString.equals(LocalizationSupport.getMessage("QIBLADIRECTION"))) {//GEN-LINE:|17-action|3|35-preAction
//mSunMoonPosition=new SunMoonPosition (position);
switchDisplayable(null, getCompassCanvas());//GEN-LINE:|17-action|4|35-postAction
// compassCanvas.setmSunMoonPosition(mSunMoonPosition);
//compassCanvas.setLocationName(locationPrefer.getLocation());
compassCanvas.setPreferences(forOneDay);
// compassCanvas.setFullScreenMode(optionPref.getIsFullScreen());
} else if (__selectedString.equals(LocalizationSupport.getMessage("KERAHAT"))) {//GEN-LINE:|17-action|5|428-preAction
// write pre-action user code here
// kerahat= new TimesKerahat(position,MJD0h);
// magvar=MagDeclination.SGMagVar(position, MJD0h, calPref.getAltitude(), field);
switchDisplayable(null, getKerahatCanvas());//GEN-LINE:|17-action|6|428-postAction
kerahatCanvas.setFullScreenMode(optionPref.getIsFullScreen());
} else if (__selectedString.equals(LocalizationSupport.getMessage("WARNINGTYPE"))) {//GEN-LINE:|17-action|7|71-preAction
switchDisplayable(null, getWarningForm());//GEN-LINE:|17-action|8|71-postAction
warnPref=new WarningPrefer();
warnPref.loadWarnPreferInfo();
getImsakEWTxtFld().setString(warnPref.getFajrEWM()+"");
getGunesEWTxtFld().setString(warnPref.getSunRiseEWM()+"");
getOgleEWTxtFld().setString(warnPref.getZuhrEWM()+"");
getIkindiEWTxtFld().setString(warnPref.getAsrEWM()+"");
getAksamEWTxtFld().setString(warnPref.getMagribEWM()+"");
getYatsiEWTxtFld().setString(warnPref.getIshaEWM()+"");
getImsakWarnGrp().setSelectedIndex(warnPref.getFajrWarn(), true);
getGunesWarnGrp().setSelectedIndex(warnPref.getSunRiseWarn(), true);
getOgleWarnGrp().setSelectedIndex(warnPref.getZuhrWarn(), true);
getIkindiWarnGrp().setSelectedIndex(warnPref.getAsrWarn(), true);
getAksamWarnGrp().setSelectedIndex(warnPref.getMagribWarn(), true);
getYatsiWarnGrp().setSelectedIndex(warnPref.getIshaWarn(), true);
// write post-action user code here
} else if (__selectedString.equals(LocalizationSupport.getMessage("CALCULATIONMETHOD"))) {//GEN-LINE:|17-action|9|72-preAction
calPref=new CalculationPrefer();
calPref.loadCalcPreferInfo();
switchDisplayable(null, getCalculationMethod());//GEN-LINE:|17-action|10|72-postAction
calculationMethodGrp.setSelectedIndex(calPref.getCalculationMethod(), true);
} else if (__selectedString.equals(LocalizationSupport.getMessage("OPTIONS"))) {//GEN-LINE:|17-action|11|508-preAction
optionPref=new OptionPrefer();
optionPref.loadOptionDataBase();
switchDisplayable(null, getOptionsForm());//GEN-LINE:|17-action|12|508-postAction
getFontSizeGrp().setSelectedIndex((int)optionPref.getFontSize(),true);
getVolumeGauge().setValue((int)optionPref.getVolumeLevel());
getScreenTopGrp().setSelectedIndex((int)optionPref.getScreenTop(),true);
getHijriCorrectionTxtFld().setString((int)optionPref.getHijriCorrection()+"");
getIsFullScreenGrp().setSelectedIndex(0,optionPref.getIsFullScreen());
getIsMilitaryGrp().setSelectedIndex(0,optionPref.getIsMilitary());
} else if (__selectedString.equals(LocalizationSupport.getMessage("ABOUT"))) {//GEN-LINE:|17-action|13|404-preAction
// write pre-action user code here
switchDisplayable(null, getDefaultTextBox());//GEN-LINE:|17-action|14|404-postAction
getDefaultTextBox().setString(LocalizationSupport.getMessage("ABOUTTXT"));
getDefaultTextBox().setTitle(LocalizationSupport.getMessage("HELPELEMENT"));
}//GEN-BEGIN:|17-action|15|17-postAction
}//GEN-END:|17-action|15|17-postAction
// enter post-action user code here
}//GEN-BEGIN:|17-action|16|404-postAction
//</editor-fold>//GEN-END:|17-action|16|404-postAction
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: compassCanvas ">//GEN-BEGIN:|24-getter|0|24-preInit
/**
* Returns an initiliazed instance of compassCanvas component.
* @return the initialized component instance
*/
public CompassCanvas getCompassCanvas() {
if (compassCanvas == null) {//GEN-END:|24-getter|0|24-preInit
// write pre-init user code here
compassCanvas = new CompassCanvas();//GEN-BEGIN:|24-getter|1|24-postInit
compassCanvas.setTitle(LocalizationSupport.getMessage("QIBLADIRECTION"));
compassCanvas.addCommand(getBackCommand());
compassCanvas.addCommand(getMoonInfoCommand());
compassCanvas.addCommand(getHelpCommand());
compassCanvas.setCommandListener(this);//GEN-END:|24-getter|1|24-postInit
// compassCanvas.setmSunMoonPosition(mSunMoonPosition);
// compassCanvas.setScreenTopPoint(optionPref.getScreenTop());
// write post-init user code here
}//GEN-BEGIN:|24-getter|2|
return compassCanvas;
}
//</editor-fold>//GEN-END:|24-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: sCanvas ">//GEN-BEGIN:|25-getter|0|25-preInit
/**
* Returns an initiliazed instance of sCanvas component.
* @return the initialized component instance
*/
public SCanvas getSCanvas() {
if (sCanvas == null) {//GEN-END:|25-getter|0|25-preInit
sCanvas = new SCanvas();//GEN-BEGIN:|25-getter|1|25-postInit
sCanvas.setTitle(LocalizationSupport.getMessage("PRAYERTIMES"));//GEN-END:|25-getter|1|25-postInit
//System.out.println("getSCanvas("+optionPref.getIsMilitary());
sCanvas.setFullScreenMode(optionPref.getIsFullScreen());
sCanvas.midlet=this;
sCanvas.setCommandListener(sCanvas);
sCanvas.setPreferences(forOneDay);
/* sCanvas.set24HourFormat(optionPref.getIsMilitary());
sCanvas.setTimes(MJD0h,fajr,sunRise,zuhr,asr,magrib,isha);
sCanvas.setLocationName(locationPrefer.getLocation());
sCanvas.setFontSize(optionPref.getFontSize());
sCanvas.setFullScreenMode(optionPref.getIsFullScreen());*/
// System.out.println("locationPrefer.getFontSize()"+locationPrefer.getFontSize());
/*Ticker timeleft=new Ticker();
sCanvas.setTicker(arg0);*/
// write post-init user code here
}//GEN-BEGIN:|25-getter|2|
return sCanvas;
}
//</editor-fold>//GEN-END:|25-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand ">//GEN-BEGIN:|41-getter|0|41-preInit
/**
* Returns an initiliazed instance of backCommand component.
* @return the initialized component instance
*/
public Command getBackCommand() {
if (backCommand == null) {//GEN-END:|41-getter|0|41-preInit
// write pre-init user code here
backCommand = new Command(LocalizationSupport.getMessage("BACKCOMMAND2"), Command.BACK, 0);//GEN-LINE:|41-getter|1|41-postInit
// write post-init user code here
}//GEN-BEGIN:|41-getter|2|
return backCommand;
}
//</editor-fold>//GEN-END:|41-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: citySelectForm ">//GEN-BEGIN:|50-getter|0|50-preInit
/**
* Returns an initiliazed instance of citySelectForm component.
* @return the initialized component instance
*/
public Form getCitySelectForm() {
if (citySelectForm == null) {//GEN-END:|50-getter|0|50-preInit
// write pre-init user code here
citySelectForm = new Form(LocalizationSupport.getMessage("SELECTCITY"), new Item[] { getLocationTxtFld(), getLatitudeTxtFld(), getLongTxtFld(), getTimeZoneTxtFld(), getDayLightSavingGrp(), getTimeZoneSrcGrp(), getAltitudeTxtFld(), getTemperatureTxtFld(), getPressureTxtFld(), getStringItem() });//GEN-BEGIN:|50-getter|1|50-postInit
citySelectForm.addCommand(getSaveCmd());
citySelectForm.addCommand(getBackCommand());
citySelectForm.addCommand(getHelpCommand());
citySelectForm.setCommandListener(this);//GEN-END:|50-getter|1|50-postInit
// write post-init user code here
}//GEN-BEGIN:|50-getter|2|
return citySelectForm;
}
//</editor-fold>//GEN-END:|50-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: warningForm ">//GEN-BEGIN:|73-getter|0|73-preInit
/**
* Returns an initiliazed instance of warningForm component.
* @return the initialized component instance
*/
public Form getWarningForm() {
if (warningForm == null) {//GEN-END:|73-getter|0|73-preInit
// write pre-init user code here
warningForm = new Form(LocalizationSupport.getMessage("WARNINGSETTING"), new Item[] { getImsakWarnGrp(), getImsakEWTxtFld(), getGunesWarnGrp(), getGunesEWTxtFld(), getOgleWarnGrp(), getOgleEWTxtFld(), getIkindiWarnGrp(), getIkindiEWTxtFld(), getAksamWarnGrp(), getAksamEWTxtFld(), getYatsiWarnGrp(), getYatsiEWTxtFld() });//GEN-BEGIN:|73-getter|1|73-postInit
warningForm.addCommand(getBackCommand());
warningForm.addCommand(getSaveCmd());
warningForm.addCommand(getHelpCommand());
warningForm.setCommandListener(this);//GEN-END:|73-getter|1|73-postInit
// write post-init user code here
}//GEN-BEGIN:|73-getter|2|
return warningForm;
}
//</editor-fold>//GEN-END:|73-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: setCalcParam ">//GEN-BEGIN:|74-getter|0|74-preInit
/**
* Returns an initiliazed instance of setCalcParam component.
* @return the initialized component instance
*/
public Form getSetCalcParam() {
if (setCalcParam == null) {//GEN-END:|74-getter|0|74-preInit
// write pre-init user code here
setCalcParam = new Form(LocalizationSupport.getMessage("CALCULATION"), new Item[] { getDawnAngleTxtFld(), getDuskAngleTxtFld(), getSectChoiceGrp(), getTemkinImsakTxtFld(), getTemkinGunesTxtFld(), getTemkinOgleTxtFld(), getTemkinAsrTxtFld(), getTemkinMagribTxtFld(), getTemkinYatsiTxtFld() });//GEN-BEGIN:|74-getter|1|74-postInit
setCalcParam.addCommand(getSaveCmd());
setCalcParam.addCommand(getBackCommand());
setCalcParam.addCommand(getHelpCommand());
setCalcParam.setCommandListener(this);//GEN-END:|74-getter|1|74-postInit
}//GEN-BEGIN:|74-getter|2|
return setCalcParam;
}
//</editor-fold>//GEN-END:|74-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: dawnAngleTxtFld ">//GEN-BEGIN:|88-getter|0|88-preInit
/**
* Returns an initiliazed instance of dawnAngleTxtFld component.
* @return the initialized component instance
*/
public TextField getDawnAngleTxtFld() {
if (dawnAngleTxtFld == null) {//GEN-END:|88-getter|0|88-preInit
// write pre-init user code here
dawnAngleTxtFld = new TextField(LocalizationSupport.getMessage("DAWNANGLE"), "-17", 32, TextField.ANY);//GEN-LINE:|88-getter|1|88-postInit
// write post-init user code here
}//GEN-BEGIN:|88-getter|2|
return dawnAngleTxtFld;
}
//</editor-fold>//GEN-END:|88-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: duskAngleTxtFld ">//GEN-BEGIN:|89-getter|0|89-preInit
/**
* Returns an initiliazed instance of duskAngleTxtFld component.
* @return the initialized component instance
*/
public TextField getDuskAngleTxtFld() {
if (duskAngleTxtFld == null) {//GEN-END:|89-getter|0|89-preInit
// write pre-init user code here
duskAngleTxtFld = new TextField(LocalizationSupport.getMessage("DUSKANGLE"), "-18", 32, TextField.ANY);//GEN-LINE:|89-getter|1|89-postInit
// write post-init user code here
}//GEN-BEGIN:|89-getter|2|
return duskAngleTxtFld;
}
//</editor-fold>//GEN-END:|89-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: sectChoiceGrp ">//GEN-BEGIN:|91-getter|0|91-preInit
/**
* Returns an initiliazed instance of sectChoiceGrp component.
* @return the initialized component instance
*/
public ChoiceGroup getSectChoiceGrp() {
if (sectChoiceGrp == null) {//GEN-END:|91-getter|0|91-preInit
// write pre-init user code here
sectChoiceGrp = new ChoiceGroup(LocalizationSupport.getMessage("SECTFORASR"), Choice.POPUP);//GEN-BEGIN:|91-getter|1|91-postInit
sectChoiceGrp.append(LocalizationSupport.getMessage("SAFIMETHOD"), null);
sectChoiceGrp.append(LocalizationSupport.getMessage("HANEFIMETHOD"), null);
sectChoiceGrp.setSelectedFlags(new boolean[] { false, false });//GEN-END:|91-getter|1|91-postInit
// write post-init user code here
}//GEN-BEGIN:|91-getter|2|
return sectChoiceGrp;
}
//</editor-fold>//GEN-END:|91-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: temkinImsakTxtFld ">//GEN-BEGIN:|94-getter|0|94-preInit
/**
* Returns an initiliazed instance of temkinImsakTxtFld component.
* @return the initialized component instance
*/
public TextField getTemkinImsakTxtFld() {
if (temkinImsakTxtFld == null) {//GEN-END:|94-getter|0|94-preInit
// write pre-init user code here
temkinImsakTxtFld = new TextField(LocalizationSupport.getMessage("FAJRTEMKIN"), "-1", 32, TextField.NUMERIC);//GEN-LINE:|94-getter|1|94-postInit
// write post-init user code here
}//GEN-BEGIN:|94-getter|2|
return temkinImsakTxtFld;
}
//</editor-fold>//GEN-END:|94-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: temkinGunesTxtFld ">//GEN-BEGIN:|95-getter|0|95-preInit
/**
* Returns an initiliazed instance of temkinGunesTxtFld component.
* @return the initialized component instance
*/
public TextField getTemkinGunesTxtFld() {
if (temkinGunesTxtFld == null) {//GEN-END:|95-getter|0|95-preInit
// write pre-init user code here
temkinGunesTxtFld = new TextField(LocalizationSupport.getMessage("SUNRISETEMKIN"), null, 32, TextField.NUMERIC);//GEN-LINE:|95-getter|1|95-postInit
// write post-init user code here
}//GEN-BEGIN:|95-getter|2|
return temkinGunesTxtFld;
}
//</editor-fold>//GEN-END:|95-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: temkinOgleTxtFld ">//GEN-BEGIN:|96-getter|0|96-preInit
/**
* Returns an initiliazed instance of temkinOgleTxtFld component.
* @return the initialized component instance
*/
public TextField getTemkinOgleTxtFld() {
if (temkinOgleTxtFld == null) {//GEN-END:|96-getter|0|96-preInit
// write pre-init user code here
temkinOgleTxtFld = new TextField(LocalizationSupport.getMessage("ZUHRTEMKIN"), null, 32, TextField.NUMERIC);//GEN-LINE:|96-getter|1|96-postInit
// write post-init user code here
}//GEN-BEGIN:|96-getter|2|
return temkinOgleTxtFld;
}
//</editor-fold>//GEN-END:|96-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: temkinAsrTxtFld ">//GEN-BEGIN:|97-getter|0|97-preInit
/**
* Returns an initiliazed instance of temkinAsrTxtFld component.
* @return the initialized component instance
*/
public TextField getTemkinAsrTxtFld() {
if (temkinAsrTxtFld == null) {//GEN-END:|97-getter|0|97-preInit
// write pre-init user code here
temkinAsrTxtFld = new TextField(LocalizationSupport.getMessage("ASRTEMKIN"), null, 32, TextField.NUMERIC);//GEN-LINE:|97-getter|1|97-postInit
// write post-init user code here
}//GEN-BEGIN:|97-getter|2|
return temkinAsrTxtFld;
}
//</editor-fold>//GEN-END:|97-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: temkinMagribTxtFld ">//GEN-BEGIN:|98-getter|0|98-preInit
/**
* Returns an initiliazed instance of temkinMagribTxtFld component.
* @return the initialized component instance
*/
public TextField getTemkinMagribTxtFld() {
if (temkinMagribTxtFld == null) {//GEN-END:|98-getter|0|98-preInit
// write pre-init user code here
temkinMagribTxtFld = new TextField(LocalizationSupport.getMessage("MAGRIBTEMKIN"), null, 32, TextField.NUMERIC);//GEN-LINE:|98-getter|1|98-postInit
// write post-init user code here
}//GEN-BEGIN:|98-getter|2|
return temkinMagribTxtFld;
}
//</editor-fold>//GEN-END:|98-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: temkinYatsiTxtFld ">//GEN-BEGIN:|99-getter|0|99-preInit
/**
* Returns an initiliazed instance of temkinYatsiTxtFld component.
* @return the initialized component instance
*/
public TextField getTemkinYatsiTxtFld() {
if (temkinYatsiTxtFld == null) {//GEN-END:|99-getter|0|99-preInit
// write pre-init user code here
temkinYatsiTxtFld = new TextField(LocalizationSupport.getMessage("ISHATEMKIN"), null, 32, TextField.NUMERIC);//GEN-LINE:|99-getter|1|99-postInit
// write post-init user code here
}//GEN-BEGIN:|99-getter|2|
return temkinYatsiTxtFld;
}
//</editor-fold>//GEN-END:|99-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: imsakWarnGrp ">//GEN-BEGIN:|100-getter|0|100-preInit
/**
* Returns an initiliazed instance of imsakWarnGrp component.
* @return the initialized component instance
*/
public ChoiceGroup getImsakWarnGrp() {
if (imsakWarnGrp == null) {//GEN-END:|100-getter|0|100-preInit
// write pre-init user code here
imsakWarnGrp = new ChoiceGroup(LocalizationSupport.getMessage("IMSAK"), Choice.POPUP);//GEN-BEGIN:|100-getter|1|100-postInit
imsakWarnGrp.append(LocalizationSupport.getMessage("NONE"), null);
imsakWarnGrp.append(LocalizationSupport.getMessage("WARNING"), null);
imsakWarnGrp.append(LocalizationSupport.getMessage("TONE"), null);
imsakWarnGrp.append(LocalizationSupport.getMessage("MESSAGE"), null);
imsakWarnGrp.append(LocalizationSupport.getMessage("BIRDCHIRP"), null);
imsakWarnGrp.append(LocalizationSupport.getMessage("VIBRATION"), null);
imsakWarnGrp.append(LocalizationSupport.getMessage("FLASHLIGHT"), null);
imsakWarnGrp.append(LocalizationSupport.getMessage("AZAN"), null);
imsakWarnGrp.append(LocalizationSupport.getMessage("WARNALL"), null);
imsakWarnGrp.setSelectedFlags(new boolean[] { false, false, false, false, false, false, false, false, false });//GEN-END:|100-getter|1|100-postInit
// write post-init user code here
}//GEN-BEGIN:|100-getter|2|
return imsakWarnGrp;
}
//</editor-fold>//GEN-END:|100-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: gunesWarnGrp ">//GEN-BEGIN:|102-getter|0|102-preInit
/**
* Returns an initiliazed instance of gunesWarnGrp component.
* @return the initialized component instance
*/
public ChoiceGroup getGunesWarnGrp() {
if (gunesWarnGrp == null) {//GEN-END:|102-getter|0|102-preInit
// write pre-init user code here
gunesWarnGrp = new ChoiceGroup(LocalizationSupport.getMessage("GUNES"), Choice.POPUP);//GEN-BEGIN:|102-getter|1|102-postInit
gunesWarnGrp.append(LocalizationSupport.getMessage("NONE"), null);
gunesWarnGrp.append(LocalizationSupport.getMessage("WARNING"), null);
gunesWarnGrp.append(LocalizationSupport.getMessage("TONE"), null);
gunesWarnGrp.append(LocalizationSupport.getMessage("MESSAGE"), null);
gunesWarnGrp.append(LocalizationSupport.getMessage("BIRDCHIRP"), null);
gunesWarnGrp.append(LocalizationSupport.getMessage("VIBRATION"), null);
gunesWarnGrp.append(LocalizationSupport.getMessage("FLASHLIGHT"), null);
gunesWarnGrp.append(LocalizationSupport.getMessage("AZAN"), null);
gunesWarnGrp.append(LocalizationSupport.getMessage("WARNALL"), null);
gunesWarnGrp.setSelectedFlags(new boolean[] { false, false, false, false, false, false, false, false, false });//GEN-END:|102-getter|1|102-postInit
// write post-init user code here
}//GEN-BEGIN:|102-getter|2|
return gunesWarnGrp;
}
//</editor-fold>//GEN-END:|102-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ogleWarnGrp ">//GEN-BEGIN:|104-getter|0|104-preInit
/**
* Returns an initiliazed instance of ogleWarnGrp component.
* @return the initialized component instance
*/
public ChoiceGroup getOgleWarnGrp() {
if (ogleWarnGrp == null) {//GEN-END:|104-getter|0|104-preInit
// write pre-init user code here
ogleWarnGrp = new ChoiceGroup(LocalizationSupport.getMessage("OGLE"), Choice.POPUP);//GEN-BEGIN:|104-getter|1|104-postInit
ogleWarnGrp.append(LocalizationSupport.getMessage("NONE"), null);
ogleWarnGrp.append(LocalizationSupport.getMessage("WARNING"), null);
ogleWarnGrp.append(LocalizationSupport.getMessage("TONE"), null);
ogleWarnGrp.append(LocalizationSupport.getMessage("MESSAGE"), null);
ogleWarnGrp.append(LocalizationSupport.getMessage("BIRDCHIRP"), null);
ogleWarnGrp.append(LocalizationSupport.getMessage("VIBRATION"), null);
ogleWarnGrp.append(LocalizationSupport.getMessage("FLASHLIGHT"), null);
ogleWarnGrp.append(LocalizationSupport.getMessage("AZAN"), null);
ogleWarnGrp.append(LocalizationSupport.getMessage("WARNALL"), null);
ogleWarnGrp.setSelectedFlags(new boolean[] { false, false, false, false, false, false, false, false, false });//GEN-END:|104-getter|1|104-postInit
// write post-init user code here
}//GEN-BEGIN:|104-getter|2|
return ogleWarnGrp;
}
//</editor-fold>//GEN-END:|104-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ikindiWarnGrp ">//GEN-BEGIN:|107-getter|0|107-preInit
/**
* Returns an initiliazed instance of ikindiWarnGrp component.
* @return the initialized component instance
*/
public ChoiceGroup getIkindiWarnGrp() {
if (ikindiWarnGrp == null) {//GEN-END:|107-getter|0|107-preInit
// write pre-init user code here
ikindiWarnGrp = new ChoiceGroup(LocalizationSupport.getMessage("IKINDI"), Choice.POPUP);//GEN-BEGIN:|107-getter|1|107-postInit
ikindiWarnGrp.append(LocalizationSupport.getMessage("NONE"), null);
ikindiWarnGrp.append(LocalizationSupport.getMessage("WARNING"), null);
ikindiWarnGrp.append(LocalizationSupport.getMessage("TONE"), null);
ikindiWarnGrp.append(LocalizationSupport.getMessage("MESSAGE"), null);
ikindiWarnGrp.append(LocalizationSupport.getMessage("BIRDCHIRP"), null);
ikindiWarnGrp.append(LocalizationSupport.getMessage("VIBRATION"), null);
ikindiWarnGrp.append(LocalizationSupport.getMessage("FLASHLIGHT"), null);
ikindiWarnGrp.append(LocalizationSupport.getMessage("AZAN"), null);
ikindiWarnGrp.append(LocalizationSupport.getMessage("WARNALL"), null);
ikindiWarnGrp.setSelectedFlags(new boolean[] { false, false, false, false, false, false, false, false, false });//GEN-END:|107-getter|1|107-postInit
// write post-init user code here
}//GEN-BEGIN:|107-getter|2|
return ikindiWarnGrp;
}
//</editor-fold>//GEN-END:|107-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: imsakEWTxtFld ">//GEN-BEGIN:|108-getter|0|108-preInit
/**
* Returns an initiliazed instance of imsakEWTxtFld component.
* @return the initialized component instance
*/
public TextField getImsakEWTxtFld() {
if (imsakEWTxtFld == null) {//GEN-END:|108-getter|0|108-preInit
// write pre-init user code here
imsakEWTxtFld = new TextField(LocalizationSupport.getMessage("IMSAK")+LocalizationSupport.getMessage("EARLYWARNING"), "0", 32, TextField.NUMERIC);//GEN-LINE:|108-getter|1|108-postInit
// write post-init user code here
}//GEN-BEGIN:|108-getter|2|
return imsakEWTxtFld;
}
//</editor-fold>//GEN-END:|108-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: gunesEWTxtFld ">//GEN-BEGIN:|109-getter|0|109-preInit
/**
* Returns an initiliazed instance of gunesEWTxtFld component.
* @return the initialized component instance
*/
public TextField getGunesEWTxtFld() {
if (gunesEWTxtFld == null) {//GEN-END:|109-getter|0|109-preInit
// write pre-init user code here
gunesEWTxtFld = new TextField(LocalizationSupport.getMessage("GUNES")+LocalizationSupport.getMessage("EARLYWARNING"), "45", 32, TextField.NUMERIC);//GEN-LINE:|109-getter|1|109-postInit
// write post-init user code here
}//GEN-BEGIN:|109-getter|2|
return gunesEWTxtFld;
}
//</editor-fold>//GEN-END:|109-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ogleEWTxtFld ">//GEN-BEGIN:|110-getter|0|110-preInit
/**
* Returns an initiliazed instance of ogleEWTxtFld component.
* @return the initialized component instance
*/
public TextField getOgleEWTxtFld() {
if (ogleEWTxtFld == null) {//GEN-END:|110-getter|0|110-preInit
// write pre-init user code here
ogleEWTxtFld = new TextField(LocalizationSupport.getMessage("OGLE")+LocalizationSupport.getMessage("EARLYWARNING"), "0", 32, TextField.NUMERIC);//GEN-LINE:|110-getter|1|110-postInit
// write post-init user code here
}//GEN-BEGIN:|110-getter|2|
return ogleEWTxtFld;
}
//</editor-fold>//GEN-END:|110-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ikindiEWTxtFld ">//GEN-BEGIN:|111-getter|0|111-preInit
/**
* Returns an initiliazed instance of ikindiEWTxtFld component.
* @return the initialized component instance
*/
public TextField getIkindiEWTxtFld() {
if (ikindiEWTxtFld == null) {//GEN-END:|111-getter|0|111-preInit
// write pre-init user code here
ikindiEWTxtFld = new TextField(LocalizationSupport.getMessage("IKINDI")+LocalizationSupport.getMessage("EARLYWARNING"), null, 32, TextField.NUMERIC);//GEN-LINE:|111-getter|1|111-postInit
// write post-init user code here
}//GEN-BEGIN:|111-getter|2|
return ikindiEWTxtFld;
}
//</editor-fold>//GEN-END:|111-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: aksamEWTxtFld ">//GEN-BEGIN:|112-getter|0|112-preInit
/**
* Returns an initiliazed instance of aksamEWTxtFld component.
* @return the initialized component instance
*/
public TextField getAksamEWTxtFld() {
if (aksamEWTxtFld == null) {//GEN-END:|112-getter|0|112-preInit
// write pre-init user code here
aksamEWTxtFld = new TextField(LocalizationSupport.getMessage("AKSAM")+LocalizationSupport.getMessage("EARLYWARNING"), null, 32, TextField.NUMERIC);//GEN-LINE:|112-getter|1|112-postInit
// write post-init user code here
}//GEN-BEGIN:|112-getter|2|
return aksamEWTxtFld;
}
//</editor-fold>//GEN-END:|112-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: yatsiEWTxtFld ">//GEN-BEGIN:|113-getter|0|113-preInit
/**
* Returns an initiliazed instance of yatsiEWTxtFld component.
* @return the initialized component instance
*/
public TextField getYatsiEWTxtFld() {
if (yatsiEWTxtFld == null) {//GEN-END:|113-getter|0|113-preInit
// write pre-init user code here
yatsiEWTxtFld = new TextField(LocalizationSupport.getMessage("YATSI")+LocalizationSupport.getMessage("EARLYWARNING"), null, 32, TextField.NUMERIC);//GEN-LINE:|113-getter|1|113-postInit
// write post-init user code here
}//GEN-BEGIN:|113-getter|2|
return yatsiEWTxtFld;
}
//</editor-fold>//GEN-END:|113-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: timeZoneSrcGrp ">//GEN-BEGIN:|162-getter|0|162-preInit
/**
* Returns an initiliazed instance of timeZoneSrcGrp component.
* @return the initialized component instance
*/
public ChoiceGroup getTimeZoneSrcGrp() {
if (timeZoneSrcGrp == null) {//GEN-END:|162-getter|0|162-preInit
// write pre-init user code here
timeZoneSrcGrp = new ChoiceGroup(LocalizationSupport.getMessage("TIMEZONESOURCE"), Choice.EXCLUSIVE);//GEN-BEGIN:|162-getter|1|162-postInit
timeZoneSrcGrp.append(LocalizationSupport.getMessage("SYSTEMELEMENT"), null);
timeZoneSrcGrp.append(LocalizationSupport.getMessage("MANUALELEMENT"), null);
timeZoneSrcGrp.setFitPolicy(Choice.TEXT_WRAP_DEFAULT);
timeZoneSrcGrp.setSelectedFlags(new boolean[] { true, false });//GEN-END:|162-getter|1|162-postInit
if (locationPrefer.getTimeZoneSrc()!=0)
timeZoneSrcGrp.setSelectedFlags(new boolean[] {false,true });
// write post-init user code here
}//GEN-BEGIN:|162-getter|2|
return timeZoneSrcGrp;
}
//</editor-fold>//GEN-END:|162-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: defaultTextBox ">//GEN-BEGIN:|167-getter|0|167-preInit
/**
* Returns an initiliazed instance of defaultTextBox component.
* @return the initialized component instance
*/
public TextBox getDefaultTextBox() {
if (defaultTextBox == null) {//GEN-END:|167-getter|0|167-preInit
// write pre-init user code here
defaultTextBox = new TextBox(LocalizationSupport.getMessage("HELPELEMENT"), "", 1000, TextField.ANY);//GEN-BEGIN:|167-getter|1|167-postInit
defaultTextBox.addCommand(getBackCommand());
defaultTextBox.setCommandListener(this);//GEN-END:|167-getter|1|167-postInit
// write post-init user code here
}//GEN-BEGIN:|167-getter|2|
return defaultTextBox;
}
//</editor-fold>//GEN-END:|167-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: moonInfoCommand ">//GEN-BEGIN:|165-getter|0|165-preInit
/**
* Returns an initiliazed instance of moonInfoCommand component.
* @return the initialized component instance
*/
public Command getMoonInfoCommand() {
if (moonInfoCommand == null) {//GEN-END:|165-getter|0|165-preInit
// write pre-init user code here
moonInfoCommand = new Command(LocalizationSupport.getMessage("INFORM"), Command.ITEM, 0);//GEN-LINE:|165-getter|1|165-postInit
// write post-init user code here
}//GEN-BEGIN:|165-getter|2|
return moonInfoCommand;
}
//</editor-fold>//GEN-END:|165-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: aksamWarnGrp ">//GEN-BEGIN:|175-getter|0|175-preInit
/**
* Returns an initiliazed instance of aksamWarnGrp component.
* @return the initialized component instance
*/
public ChoiceGroup getAksamWarnGrp() {
if (aksamWarnGrp == null) {//GEN-END:|175-getter|0|175-preInit
// write pre-init user code here
aksamWarnGrp = new ChoiceGroup(LocalizationSupport.getMessage("AKSAM"), Choice.POPUP);//GEN-BEGIN:|175-getter|1|175-postInit
aksamWarnGrp.append(LocalizationSupport.getMessage("NONE"), null);
aksamWarnGrp.append(LocalizationSupport.getMessage("WARNING"), null);
aksamWarnGrp.append(LocalizationSupport.getMessage("TONE"), null);
aksamWarnGrp.append(LocalizationSupport.getMessage("MESSAGE"), null);
aksamWarnGrp.append(LocalizationSupport.getMessage("BIRDCHIRP"), null);
aksamWarnGrp.append(LocalizationSupport.getMessage("VIBRATION"), null);
aksamWarnGrp.append(LocalizationSupport.getMessage("FLASHLIGHT"), null);
aksamWarnGrp.append(LocalizationSupport.getMessage("AZAN"), null);
aksamWarnGrp.append(LocalizationSupport.getMessage("WARNALL"), null);
aksamWarnGrp.setSelectedFlags(new boolean[] { false, false, false, false, false, false, false, false, false });//GEN-END:|175-getter|1|175-postInit
// write post-init user code here
}//GEN-BEGIN:|175-getter|2|
return aksamWarnGrp;
}
//</editor-fold>//GEN-END:|175-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: yatsiWarnGrp ">//GEN-BEGIN:|176-getter|0|176-preInit
/**
* Returns an initiliazed instance of yatsiWarnGrp component.
* @return the initialized component instance
*/
public ChoiceGroup getYatsiWarnGrp() {
if (yatsiWarnGrp == null) {//GEN-END:|176-getter|0|176-preInit
// write pre-init user code here
yatsiWarnGrp = new ChoiceGroup(LocalizationSupport.getMessage("YATSI"), Choice.POPUP);//GEN-BEGIN:|176-getter|1|176-postInit
yatsiWarnGrp.append(LocalizationSupport.getMessage("NONE"), null);
yatsiWarnGrp.append(LocalizationSupport.getMessage("WARNING"), null);
yatsiWarnGrp.append(LocalizationSupport.getMessage("TONE"), null);
yatsiWarnGrp.append(LocalizationSupport.getMessage("MESSAGE")
, null);
yatsiWarnGrp.append(LocalizationSupport.getMessage("BIRDCHIRP"), null);
yatsiWarnGrp.append(LocalizationSupport.getMessage("VIBRATION"), null);
yatsiWarnGrp.append(LocalizationSupport.getMessage("FLASHLIGHT"), null);
yatsiWarnGrp.append(LocalizationSupport.getMessage("AZAN"), null);
yatsiWarnGrp.append(LocalizationSupport.getMessage("WARNALL"), null);
yatsiWarnGrp.setSelectedFlags(new boolean[] { false, false, false, false, false, false, false, false, false });//GEN-END:|176-getter|1|176-postInit
// write post-init user code here
}//GEN-BEGIN:|176-getter|2|
return yatsiWarnGrp;
}
//</editor-fold>//GEN-END:|176-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: saveCmd ">//GEN-BEGIN:|203-getter|0|203-preInit
/**
* Returns an initiliazed instance of saveCmd component.
* @return the initialized component instance
*/
public Command getSaveCmd() {
if (saveCmd == null) {//GEN-END:|203-getter|0|203-preInit
// write pre-init user code here
saveCmd = new Command(LocalizationSupport.getMessage("SAVECOMMAND1"), Command.ITEM, 0);//GEN-LINE:|203-getter|1|203-postInit
// write post-init user code here
}//GEN-BEGIN:|203-getter|2|
return saveCmd;
}
//</editor-fold>//GEN-END:|203-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: kerahatCanvas ">//GEN-BEGIN:|231-getter|0|231-preInit
/**
* Returns an initiliazed instance of kerahatCanvas component.
* @return the initialized component instance
*/
public KerahatCanvas getKerahatCanvas() {
if (kerahatCanvas == null) {//GEN-END:|231-getter|0|231-preInit
// write pre-init user code here
kerahatCanvas = new KerahatCanvas();//GEN-BEGIN:|231-getter|1|231-postInit
kerahatCanvas.setTitle(lang.LocalizationSupport.getMessage("KERAHAT"));//GEN-END:|231-getter|1|231-postInit
kerahatCanvas.midlet=this;
kerahatCanvas.setCommandListener(kerahatCanvas);
kerahatCanvas.setPreferences(forOneDay);
}//GEN-BEGIN:|231-getter|2|
return kerahatCanvas;
}
//</editor-fold>//GEN-END:|231-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: stringItem ">//GEN-BEGIN:|402-getter|0|402-preInit
/**
* Returns an initiliazed instance of stringItem component.
* @return the initialized component instance
*/
public StringItem getStringItem() {
if (stringItem == null) {//GEN-END:|402-getter|0|402-preInit
// write pre-init user code here
stringItem = new StringItem("", LocalizationSupport.getMessage("HLPTZSRC"));//GEN-LINE:|402-getter|1|402-postInit
// write post-init user code here
}//GEN-BEGIN:|402-getter|2|
return stringItem;
}
//</editor-fold>//GEN-END:|402-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: helpCommand ">//GEN-BEGIN:|406-getter|0|406-preInit
/**
* Returns an initiliazed instance of helpCommand component.
* @return the initialized component instance
*/
public Command getHelpCommand() {
if (helpCommand == null) {//GEN-END:|406-getter|0|406-preInit
// write pre-init user code here
helpCommand = new Command(LocalizationSupport.getMessage("HELPELEMENT"), Command.HELP, 0);//GEN-LINE:|406-getter|1|406-postInit
// write post-init user code here
}//GEN-BEGIN:|406-getter|2|
return helpCommand;
}
//</editor-fold>//GEN-END:|406-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: exitCommand1 ">//GEN-BEGIN:|430-getter|0|430-preInit
/**
* Returns an initiliazed instance of exitCommand1 component.
* @return the initialized component instance
*/
public Command getExitCommand1() {
if (exitCommand1 == null) {//GEN-END:|430-getter|0|430-preInit
// write pre-init user code here
exitCommand1 = new Command(LocalizationSupport.getMessage("EXITCOMMAND1"), Command.EXIT, 0);//GEN-LINE:|430-getter|1|430-postInit
// write post-init user code here
}//GEN-BEGIN:|430-getter|2|
return exitCommand1;
}
//</editor-fold>//GEN-END:|430-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: calculationMethod ">//GEN-BEGIN:|436-getter|0|436-preInit
/**
* Returns an initiliazed instance of calculationMethod component.
* @return the initialized component instance
*/
public Form getCalculationMethod() {
if (calculationMethod == null) {//GEN-END:|436-getter|0|436-preInit
// write pre-init user code here
calculationMethod = new Form(LocalizationSupport.getMessage("CALCULATION"), new Item[] { getCalculationMethodGrp() });//GEN-BEGIN:|436-getter|1|436-postInit
calculationMethod.addCommand(getBackCommand());
calculationMethod.addCommand(getForwardCmd());
calculationMethod.setCommandListener(this);//GEN-END:|436-getter|1|436-postInit
// write post-init user code here
}//GEN-BEGIN:|436-getter|2|
return calculationMethod;
}
//</editor-fold>//GEN-END:|436-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: forwardCmd ">//GEN-BEGIN:|444-getter|0|444-preInit
/**
* Returns an initiliazed instance of forwardCmd component.
* @return the initialized component instance
*/
public Command getForwardCmd() {
if (forwardCmd == null) {//GEN-END:|444-getter|0|444-preInit
// write pre-init user code here
forwardCmd = new Command(LocalizationSupport.getMessage("GO"), Command.SCREEN, 0);//GEN-LINE:|444-getter|1|444-postInit
// write post-init user code here
}//GEN-BEGIN:|444-getter|2|
return forwardCmd;
}
//</editor-fold>//GEN-END:|444-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: calculationMethodGrp ">//GEN-BEGIN:|447-getter|0|447-preInit
/**
* Returns an initiliazed instance of calculationMethodGrp component.
* @return the initialized component instance
*/
public ChoiceGroup getCalculationMethodGrp() {
if (calculationMethodGrp == null) {//GEN-END:|447-getter|0|447-preInit
// write pre-init user code here
calculationMethodGrp = new ChoiceGroup(LocalizationSupport.getMessage("CALCULATIONMETHOD")//GEN-BEGIN:|447-getter|1|447-postInit
, Choice.EXCLUSIVE);
calculationMethodGrp.append(LocalizationSupport.getMessage("DIYANET"), null);
calculationMethodGrp.append(LocalizationSupport.getMessage("ISNA"), null);
calculationMethodGrp.append(LocalizationSupport.getMessage("MWL"), null);
calculationMethodGrp.append(LocalizationSupport.getMessage("EGAS"), null);
calculationMethodGrp.append(LocalizationSupport.getMessage("KARACHI"), null);
calculationMethodGrp.append(LocalizationSupport.getMessage("UMMUL"), null);
calculationMethodGrp.append(LocalizationSupport.getMessage("CUSTOM"), null);
calculationMethodGrp.setSelectedFlags(new boolean[] { false, false, false, false, false, false, false });//GEN-END:|447-getter|1|447-postInit
// write post-init user code here
}//GEN-BEGIN:|447-getter|2|
return calculationMethodGrp;
}
//</editor-fold>//GEN-END:|447-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: countryForm ">//GEN-BEGIN:|459-getter|0|459-preInit
/**
* Returns an initiliazed instance of countryForm component.
* @return the initialized component instance
*/
public Form getCountryForm() {
if (countryForm == null) {//GEN-END:|459-getter|0|459-preInit
// write pre-init user code here
countryForm = new Form(LocalizationSupport.getMessage("COUNTRYGRP"), new Item[] { getCountryGrp() });//GEN-BEGIN:|459-getter|1|459-postInit
countryForm.addCommand(getForwardCmd());
countryForm.addCommand(getBackCommand());
countryForm.setCommandListener(this);//GEN-END:|459-getter|1|459-postInit
// write post-init user code here
}//GEN-BEGIN:|459-getter|2|
return countryForm;
}
//</editor-fold>//GEN-END:|459-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: countryGrp ">//GEN-BEGIN:|463-getter|0|463-preInit
/**
* Returns an initiliazed instance of countryGrp component.
* @return the initialized component instance
*/
public ChoiceGroup getCountryGrp() {
if (countryGrp == null) {//GEN-END:|463-getter|0|463-preInit
// write pre-init user code here
countryGrp = new ChoiceGroup(LocalizationSupport.getMessage("COUNTRYGRP"), Choice.EXCLUSIVE);//GEN-LINE:|463-getter|1|463-postInit
locationParse=new LocationParse ();
countryGrp= locationParse.modifyCountryChoiceGroup(continentName, countryGrp);
}//GEN-BEGIN:|463-getter|2|
return countryGrp;
}
//</editor-fold>//GEN-END:|463-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: cityForm ">//GEN-BEGIN:|466-getter|0|466-preInit
/**
* Returns an initiliazed instance of cityForm component.
* @return the initialized component instance
*/
public Form getCityForm() {
if (cityForm == null) {//GEN-END:|466-getter|0|466-preInit
// write pre-init user code here
cityForm = new Form(LocalizationSupport.getMessage("PROVINCEGRP"), new Item[] { getCityGrp() });//GEN-BEGIN:|466-getter|1|466-postInit
cityForm.addCommand(getForwardCmd());
cityForm.addCommand(getBackCommand());
cityForm.setCommandListener(this);//GEN-END:|466-getter|1|466-postInit
// write post-init user code here
}//GEN-BEGIN:|466-getter|2|
return cityForm;
}
//</editor-fold>//GEN-END:|466-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: cityGrp ">//GEN-BEGIN:|467-getter|0|467-preInit
/**
* Returns an initiliazed instance of cityGrp component.
* @return the initialized component instance
*/
public ChoiceGroup getCityGrp() {
if (cityGrp == null) {//GEN-END:|467-getter|0|467-preInit
// write pre-init user code here
cityGrp = new ChoiceGroup(LocalizationSupport.getMessage("PROVINCEGRP"), Choice.EXCLUSIVE);//GEN-LINE:|467-getter|1|467-postInit
// write post-init user code here
}//GEN-BEGIN:|467-getter|2|
return cityGrp;
}
//</editor-fold>//GEN-END:|467-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: townForm ">//GEN-BEGIN:|471-getter|0|471-preInit
/**
* Returns an initiliazed instance of townForm component.
* @return the initialized component instance
*/
public Form getTownForm() {
if (townForm == null) {//GEN-END:|471-getter|0|471-preInit
// write pre-init user code here
townForm = new Form(LocalizationSupport.getMessage("TOWNS"), new Item[] { getTownGrp() });//GEN-BEGIN:|471-getter|1|471-postInit
townForm.addCommand(getForwardCmd());
townForm.addCommand(getBackCommand());
townForm.setCommandListener(this);//GEN-END:|471-getter|1|471-postInit
// write post-init user code here
}//GEN-BEGIN:|471-getter|2|
return townForm;
}
//</editor-fold>//GEN-END:|471-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: townGrp ">//GEN-BEGIN:|478-getter|0|478-preInit
/**
* Returns an initiliazed instance of townGrp component.
* @return the initialized component instance
*/
public ChoiceGroup getTownGrp() {
if (townGrp == null) {//GEN-END:|478-getter|0|478-preInit
// write pre-init user code here
townGrp = new ChoiceGroup(LocalizationSupport.getMessage("TOWNS"), Choice.EXCLUSIVE);//GEN-BEGIN:|478-getter|1|478-postInit
townGrp.setSelectedFlags(new boolean[] { });//GEN-END:|478-getter|1|478-postInit
// write post-init user code here
}//GEN-BEGIN:|478-getter|2|
return townGrp;
}
//</editor-fold>//GEN-END:|478-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: locationTxtFld ">//GEN-BEGIN:|484-getter|0|484-preInit
/**
* Returns an initiliazed instance of locationTxtFld component.
* @return the initialized component instance
*/
public TextField getLocationTxtFld() {
if (locationTxtFld == null) {//GEN-END:|484-getter|0|484-preInit
// write pre-init user code here
locationTxtFld = new TextField(LocalizationSupport.getMessage("LOCATION"), null, 32, TextField.ANY | TextField.INITIAL_CAPS_WORD);//GEN-LINE:|484-getter|1|484-postInit
// write post-init user code here
}//GEN-BEGIN:|484-getter|2|
return locationTxtFld;
}
//</editor-fold>//GEN-END:|484-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: longTxtFld ">//GEN-BEGIN:|485-getter|0|485-preInit
/**
* Returns an initiliazed instance of longTxtFld component.
* @return the initialized component instance
*/
public TextField getLongTxtFld() {
if (longTxtFld == null) {//GEN-END:|485-getter|0|485-preInit
// write pre-init user code here
longTxtFld = new TextField(LocalizationSupport.getMessage("LONGITUDE"), null, 32, TextField.DECIMAL);//GEN-LINE:|485-getter|1|485-postInit
// write post-init user code here
}//GEN-BEGIN:|485-getter|2|
return longTxtFld;
}
//</editor-fold>//GEN-END:|485-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: latitudeTxtFld ">//GEN-BEGIN:|486-getter|0|486-preInit
/**
* Returns an initiliazed instance of latitudeTxtFld component.
* @return the initialized component instance
*/
public TextField getLatitudeTxtFld() {
if (latitudeTxtFld == null) {//GEN-END:|486-getter|0|486-preInit
// write pre-init user code here
latitudeTxtFld = new TextField(LocalizationSupport.getMessage("LATITUDE"), null, 32, TextField.DECIMAL);//GEN-LINE:|486-getter|1|486-postInit
// write post-init user code here
}//GEN-BEGIN:|486-getter|2|
return latitudeTxtFld;
}
//</editor-fold>//GEN-END:|486-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: timeZoneTxtFld ">//GEN-BEGIN:|487-getter|0|487-preInit
/**
* Returns an initiliazed instance of timeZoneTxtFld component.
* @return the initialized component instance
*/
public TextField getTimeZoneTxtFld() {
if (timeZoneTxtFld == null) {//GEN-END:|487-getter|0|487-preInit
// write pre-init user code here
timeZoneTxtFld = new TextField(LocalizationSupport.getMessage("TIMEZONE"), null, 32, TextField.DECIMAL);//GEN-LINE:|487-getter|1|487-postInit
// write post-init user code here
}//GEN-BEGIN:|487-getter|2|
return timeZoneTxtFld;
}
//</editor-fold>//GEN-END:|487-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: holyDayTxt ">//GEN-BEGIN:|490-getter|0|490-preInit
/**
* Returns an initiliazed instance of holyDayTxt component.
* @return the initialized component instance
*/
public TextBox getHolyDayTxt() {
if (holyDayTxt == null) {//GEN-END:|490-getter|0|490-preInit
// write pre-init user code here
holyDayTxt = new TextBox(LocalizationSupport.getMessage("HOLYDAYS"), LocalizationSupport.getMessage("HOLYDAYSALL"), 2000, TextField.ANY);//GEN-BEGIN:|490-getter|1|490-postInit
holyDayTxt.addCommand(getBackCommand());
holyDayTxt.setCommandListener(this);//GEN-END:|490-getter|1|490-postInit
// write post-init user code here
}//GEN-BEGIN:|490-getter|2|
return holyDayTxt;
}
//</editor-fold>//GEN-END:|490-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: optionsForm ">//GEN-BEGIN:|496-getter|0|496-preInit
/**
* Returns an initiliazed instance of optionsForm component.
* @return the initialized component instance
*/
public Form getOptionsForm() {
if (optionsForm == null) {//GEN-END:|496-getter|0|496-preInit
// write pre-init user code here
optionsForm = new Form(LocalizationSupport.getMessage("OPTIONS"), new Item[] { getFontSizeGrp(), getVolumeGauge(), getScreenTopGrp(), getIsFullScreenGrp(), getIsMilitaryGrp(), getHijriCorrectionTxtFld() });//GEN-BEGIN:|496-getter|1|496-postInit
optionsForm.addCommand(getSaveCmd());
optionsForm.addCommand(getBackCommand());
optionsForm.setCommandListener(this);//GEN-END:|496-getter|1|496-postInit
// write post-init user code here
}//GEN-BEGIN:|496-getter|2|
return optionsForm;
}
//</editor-fold>//GEN-END:|496-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: fontSizeGrp ">//GEN-BEGIN:|498-getter|0|498-preInit
/**
* Returns an initiliazed instance of fontSizeGrp component.
* @return the initialized component instance
*/
public ChoiceGroup getFontSizeGrp() {
if (fontSizeGrp == null) {//GEN-END:|498-getter|0|498-preInit
// write pre-init user code here
fontSizeGrp = new ChoiceGroup(LocalizationSupport.getMessage("FONTSIZE"), Choice.EXCLUSIVE);//GEN-BEGIN:|498-getter|1|498-postInit
fontSizeGrp.append(LocalizationSupport.getMessage("SMALL"), null);
fontSizeGrp.append(LocalizationSupport.getMessage("MEDIUM"), null);
fontSizeGrp.append(LocalizationSupport.getMessage("LARGE"), null);
fontSizeGrp.setSelectedFlags(new boolean[] { false, false, false });//GEN-END:|498-getter|1|498-postInit
fontSizeGrp.setSelectedIndex(optionPref.getFontSize(),true);
// write post-init user code here
}//GEN-BEGIN:|498-getter|2|
return fontSizeGrp;
}
//</editor-fold>//GEN-END:|498-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: screenTopGrp ">//GEN-BEGIN:|499-getter|0|499-preInit
/**
* Returns an initiliazed instance of screenTopGrp component.
* @return the initialized component instance
*/
public ChoiceGroup getScreenTopGrp() {
if (screenTopGrp == null) {//GEN-END:|499-getter|0|499-preInit
// write pre-init user code here
screenTopGrp = new ChoiceGroup(LocalizationSupport.getMessage("SCREENTOP"), Choice.EXCLUSIVE);//GEN-BEGIN:|499-getter|1|499-postInit
screenTopGrp.append(LocalizationSupport.getMessage("NORTHLONG"), null);
screenTopGrp.append(LocalizationSupport.getMessage("SUNORMOON"), null);
screenTopGrp.append(LocalizationSupport.getMessage("QIBLA"), null);
screenTopGrp.setSelectedFlags(new boolean[] { false, false, false });//GEN-END:|499-getter|1|499-postInit
// write post-init user code here
}//GEN-BEGIN:|499-getter|2|
return screenTopGrp;
}
//</editor-fold>//GEN-END:|499-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: HijriCorrectionTxtFld ">//GEN-BEGIN:|500-getter|0|500-preInit
/**
* Returns an initiliazed instance of HijriCorrectionTxtFld component.
* @return the initialized component instance
*/
public TextField getHijriCorrectionTxtFld() {
if (HijriCorrectionTxtFld == null) {//GEN-END:|500-getter|0|500-preInit
// write pre-init user code here
HijriCorrectionTxtFld = new TextField(LocalizationSupport.getMessage("HIJRIDAYADJUST"), "0", 32, TextField.NUMERIC);//GEN-BEGIN:|500-getter|1|500-postInit
HijriCorrectionTxtFld.setLayout(ImageItem.LAYOUT_DEFAULT);//GEN-END:|500-getter|1|500-postInit
// write post-init user code here
}//GEN-BEGIN:|500-getter|2|
return HijriCorrectionTxtFld;
}
//</editor-fold>//GEN-END:|500-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: volumeGauge ">//GEN-BEGIN:|507-getter|0|507-preInit
/**
* Returns an initiliazed instance of volumeGauge component.
* @return the initialized component instance
*/
public Gauge getVolumeGauge() {
if (volumeGauge == null) {//GEN-END:|507-getter|0|507-preInit
// write pre-init user code here
volumeGauge = new Gauge(LocalizationSupport.getMessage("VOLUMELEVEL"), true, 100, 50);//GEN-LINE:|507-getter|1|507-postInit
// write post-init user code here
}//GEN-BEGIN:|507-getter|2|
return volumeGauge;
}
//</editor-fold>//GEN-END:|507-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: isFullScreenGrp ">//GEN-BEGIN:|515-getter|0|515-preInit
/**
* Returns an initiliazed instance of isFullScreenGrp component.
* @return the initialized component instance
*/
public ChoiceGroup getIsFullScreenGrp() {
if (isFullScreenGrp == null) {//GEN-END:|515-getter|0|515-preInit
// write pre-init user code here
isFullScreenGrp = new ChoiceGroup(LocalizationSupport.getMessage("SCREENSIZE"), Choice.MULTIPLE);//GEN-BEGIN:|515-getter|1|515-postInit
isFullScreenGrp.append(LocalizationSupport.getMessage("FULLSCREEN"), null);
isFullScreenGrp.setSelectedFlags(new boolean[] { false });//GEN-END:|515-getter|1|515-postInit
// write post-init user code here
}//GEN-BEGIN:|515-getter|2|
return isFullScreenGrp;
}
//</editor-fold>//GEN-END:|515-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: continentList ">//GEN-BEGIN:|520-getter|0|520-preInit
/**
* Returns an initiliazed instance of continentList component.
* @return the initialized component instance
*/
public List getContinentList() {
if (continentList == null) {//GEN-END:|520-getter|0|520-preInit
// write pre-init user code here
continentList = new List(LocalizationSupport.getMessage("CONTINENTS"), Choice.IMPLICIT);//GEN-BEGIN:|520-getter|1|520-postInit
continentList.append(LocalizationSupport.getMessage("ASIA"), null);
continentList.append(LocalizationSupport.getMessage("AFRICA"), null);
continentList.append(LocalizationSupport.getMessage("EUROPE"), null);
continentList.append(LocalizationSupport.getMessage("NORTHAMERICA"), null);
continentList.append(LocalizationSupport.getMessage("SOUTHAMERICA"), null);
continentList.append(LocalizationSupport.getMessage("OCEANIA"), null);
continentList.addCommand(getBackCommand());
continentList.setCommandListener(this);
continentList.setSelectedFlags(new boolean[] { false, false, false, false, false, false });//GEN-END:|520-getter|1|520-postInit
// write post-init user code here
}//GEN-BEGIN:|520-getter|2|
return continentList;
}
//</editor-fold>//GEN-END:|520-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Method: continentListAction ">//GEN-BEGIN:|520-action|0|520-preAction
/**
* Performs an action assigned to the selected list element in the continentList component.
*/
public void continentListAction() {//GEN-END:|520-action|0|520-preAction
// enter pre-action user code here
String __selectedString = getContinentList().getString(getContinentList().getSelectedIndex());//GEN-BEGIN:|520-action|1|524-preAction
if (__selectedString != null) {
if (__selectedString.equals(LocalizationSupport.getMessage("ASIA"))) {//GEN-END:|520-action|1|524-preAction
countryGrp=null;
continentName="ASIA.txt";
switchDisplayable(null, getCountryForm());//GEN-LINE:|520-action|2|524-postAction
// write post-action user code here
} else if (__selectedString.equals(LocalizationSupport.getMessage("AFRICA"))) {//GEN-LINE:|520-action|3|523-preAction
countryGrp=null;
continentName="AFRIKA.txt";
// write pre-action user code here
switchDisplayable(null, getCountryForm());//GEN-LINE:|520-action|4|523-postAction
// write post-action user code here
} else if (__selectedString.equals(LocalizationSupport.getMessage("EUROPE"))) {//GEN-LINE:|520-action|5|525-preAction
countryGrp=null;
continentName="EUROPE.txt";
switchDisplayable(null, getCountryForm());//GEN-LINE:|520-action|6|525-postAction
// write post-action user code here
} else if (__selectedString.equals(LocalizationSupport.getMessage("NORTHAMERICA"))) {//GEN-LINE:|520-action|7|526-preAction
countryGrp=null;
continentName="NORTHAMERICA.txt";
switchDisplayable(null, getCountryForm());//GEN-LINE:|520-action|8|526-postAction
// write post-action user code here
} else if (__selectedString.equals(LocalizationSupport.getMessage("SOUTHAMERICA"))) {//GEN-LINE:|520-action|9|533-preAction
countryGrp=null;
continentName="SOUTHAMERICA.txt";
switchDisplayable(null, getCountryForm());//GEN-LINE:|520-action|10|533-postAction
// write post-action user code here
} else if (__selectedString.equals(LocalizationSupport.getMessage("OCEANIA"))) {//GEN-LINE:|520-action|11|527-preAction
countryGrp=null;
continentName="OCEANIA.txt";
switchDisplayable(null, getCountryForm());//GEN-LINE:|520-action|12|527-postAction
// write post-action user code here
}//GEN-BEGIN:|520-action|13|520-postAction
}//GEN-END:|520-action|13|520-postAction
// enter post-action user code here
}//GEN-BEGIN:|520-action|14|
//</editor-fold>//GEN-END:|520-action|14|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: isMilitaryGrp ">//GEN-BEGIN:|537-getter|0|537-preInit
/**
* Returns an initiliazed instance of isMilitaryGrp component.
* @return the initialized component instance
*/
public ChoiceGroup getIsMilitaryGrp() {
if (isMilitaryGrp == null) {//GEN-END:|537-getter|0|537-preInit
// write pre-init user code here
isMilitaryGrp = new ChoiceGroup(LocalizationSupport.getMessage("TIMEFORMAT"), Choice.MULTIPLE);//GEN-BEGIN:|537-getter|1|537-postInit
isMilitaryGrp.append(LocalizationSupport.getMessage("24HOURFORMAT"), null);
isMilitaryGrp.setSelectedFlags(new boolean[] { false });//GEN-END:|537-getter|1|537-postInit
// write post-init user code here
}//GEN-BEGIN:|537-getter|2|
return isMilitaryGrp;
}
//</editor-fold>//GEN-END:|537-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: textBoxKerahat ">//GEN-BEGIN:|566-getter|0|566-preInit
/**
* Returns an initiliazed instance of textBoxKerahat component.
* @return the initialized component instance
*/
public TextBox getTextBoxKerahat() {
if (textBoxKerahat == null) {//GEN-END:|566-getter|0|566-preInit
// write pre-init user code here
textBoxKerahat = new TextBox("textBox", LocalizationSupport.getMessage("KERAHATTXT"), 1000, TextField.ANY);//GEN-BEGIN:|566-getter|1|566-postInit
textBoxKerahat.addCommand(getBackCommand());
textBoxKerahat.setCommandListener(this);//GEN-END:|566-getter|1|566-postInit
kerahatCanvas.midlet=this;
kerahatCanvas.setCommandListener(kerahatCanvas);
kerahatCanvas.setPreferences(forOneDay);
// write post-init user code here
}//GEN-BEGIN:|566-getter|2|
return textBoxKerahat;
}
//</editor-fold>//GEN-END:|566-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: sunMoonCanvas ">//GEN-BEGIN:|569-getter|0|569-preInit
/**
* Returns an initiliazed instance of sunMoonCanvas component.
* @return the initialized component instance
*/
public SunMoonCanvas getSunMoonCanvas() {
if (sunMoonCanvas == null) {//GEN-END:|569-getter|0|569-preInit
// write pre-init user code here
sunMoonCanvas = new SunMoonCanvas();//GEN-BEGIN:|569-getter|1|569-postInit
sunMoonCanvas.setTitle(LocalizationSupport.getMessage("INFORM"));
sunMoonCanvas.addCommand(getBackCommand());
sunMoonCanvas.addCommand(getMoreCommand());
sunMoonCanvas.setCommandListener(this);//GEN-END:|569-getter|1|569-postInit
sunMoonCanvas.setPreferences(forOneDay);
// write post-init user code here
}//GEN-BEGIN:|569-getter|2|
return sunMoonCanvas;
}
//</editor-fold>//GEN-END:|569-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: moreCommand ">//GEN-BEGIN:|576-getter|0|576-preInit
/**
* Returns an initiliazed instance of moreCommand component.
* @return the initialized component instance
*/
public Command getMoreCommand() {
if (moreCommand == null) {//GEN-END:|576-getter|0|576-preInit
// write pre-init user code here
moreCommand = new Command(LocalizationSupport.getMessage("MORE"), Command.ITEM, 0);//GEN-LINE:|576-getter|1|576-postInit
// write post-init user code here
}//GEN-BEGIN:|576-getter|2|
return moreCommand;
}
//</editor-fold>//GEN-END:|576-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: useGPS ">//GEN-BEGIN:|579-getter|0|579-preInit
/**
* Returns an initiliazed instance of useGPS component.
* @return the initialized component instance
*/
public Command getUseGPS() {
if (useGPS == null) {//GEN-END:|579-getter|0|579-preInit
// write pre-init user code here
useGPS = new Command(LocalizationSupport.getMessage("USEGPS"), Command.ITEM, 0);//GEN-LINE:|579-getter|1|579-postInit
// write post-init user code here
}//GEN-BEGIN:|579-getter|2|
return useGPS;
}
//</editor-fold>//GEN-END:|579-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: altitudeTxtFld ">//GEN-BEGIN:|581-getter|0|581-preInit
/**
* Returns an initiliazed instance of altitudeTxtFld component.
* @return the initialized component instance
*/
public TextField getAltitudeTxtFld() {
if (altitudeTxtFld == null) {//GEN-END:|581-getter|0|581-preInit
// write pre-init user code here
altitudeTxtFld = new TextField(LocalizationSupport.getMessage("ALTITUDE"), null, 32, TextField.DECIMAL);//GEN-LINE:|581-getter|1|581-postInit
// write post-init user code here
}//GEN-BEGIN:|581-getter|2|
return altitudeTxtFld;
}
//</editor-fold>//GEN-END:|581-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: temperatureTxtFld ">//GEN-BEGIN:|582-getter|0|582-preInit
/**
* Returns an initiliazed instance of temperatureTxtFld component.
* @return the initialized component instance
*/
public TextField getTemperatureTxtFld() {
if (temperatureTxtFld == null) {//GEN-END:|582-getter|0|582-preInit
// write pre-init user code here
temperatureTxtFld = new TextField(LocalizationSupport.getMessage("Temperature"), null, 32, TextField.NUMERIC);//GEN-LINE:|582-getter|1|582-postInit
// write post-init user code here
}//GEN-BEGIN:|582-getter|2|
return temperatureTxtFld;
}
//</editor-fold>//GEN-END:|582-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: pressureTxtFld ">//GEN-BEGIN:|583-getter|0|583-preInit
/**
* Returns an initiliazed instance of pressureTxtFld component.
* @return the initialized component instance
*/
public TextField getPressureTxtFld() {
if (pressureTxtFld == null) {//GEN-END:|583-getter|0|583-preInit
// write pre-init user code here
pressureTxtFld = new TextField(LocalizationSupport.getMessage("Pressure"), null, 32, TextField.NUMERIC);//GEN-LINE:|583-getter|1|583-postInit
// write post-init user code here
}//GEN-BEGIN:|583-getter|2|
return pressureTxtFld;
}
//</editor-fold>//GEN-END:|583-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: extremeLatitudes ">//GEN-BEGIN:|586-getter|0|586-preInit
/**
* Returns an initiliazed instance of extremeLatitudes component.
* @return the initialized component instance
*/
public Form getExtremeLatitudes() {
if (extremeLatitudes == null) {//GEN-END:|586-getter|0|586-preInit
// write pre-init user code here
extremeLatitudes = new Form(LocalizationSupport.getMessage("EXLAT"), new Item[] { getEstimationChoiceGrp(), getBaseLatTxtFld(), getAmountNightChioceGrp(), getFixedIshaChoiceGrp(), getFixedIshaTxtFld() });//GEN-BEGIN:|586-getter|1|586-postInit
extremeLatitudes.addCommand(getSaveCmd());
extremeLatitudes.addCommand(getBackCommand());
extremeLatitudes.addCommand(getHelpCommand());
extremeLatitudes.setCommandListener(this);//GEN-END:|586-getter|1|586-postInit
// write post-init user code here
}//GEN-BEGIN:|586-getter|2|
return extremeLatitudes;
}
//</editor-fold>//GEN-END:|586-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: estimationChoiceGrp ">//GEN-BEGIN:|590-getter|0|590-preInit
/**
* Returns an initiliazed instance of estimationChoiceGrp component.
* @return the initialized component instance
*/
public ChoiceGroup getEstimationChoiceGrp() {
if (estimationChoiceGrp == null) {//GEN-END:|590-getter|0|590-preInit
// write pre-init user code here
estimationChoiceGrp = new ChoiceGroup(LocalizationSupport.getMessage("NearestDay"), Choice.EXCLUSIVE);//GEN-BEGIN:|590-getter|1|590-postInit
estimationChoiceGrp.append(LocalizationSupport.getMessage("NOESTIMATION"), null);
estimationChoiceGrp.append(LocalizationSupport.getMessage("NearestLatitude"), null);
estimationChoiceGrp.append(LocalizationSupport.getMessage("NearestDay"), null);
estimationChoiceGrp.append(LocalizationSupport.getMessage("ANAMOUNTNIGHT"), null);
estimationChoiceGrp.append(LocalizationSupport.getMessage("MiddleNight"), null);
estimationChoiceGrp.setFitPolicy(Choice.TEXT_WRAP_DEFAULT);
estimationChoiceGrp.setSelectedFlags(new boolean[] { false, false, false, false, false });//GEN-END:|590-getter|1|590-postInit
// write post-init user code here
}//GEN-BEGIN:|590-getter|2|
return estimationChoiceGrp;
}
//</editor-fold>//GEN-END:|590-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: baseLatTxtFld ">//GEN-BEGIN:|595-getter|0|595-preInit
/**
* Returns an initiliazed instance of baseLatTxtFld component.
* @return the initialized component instance
*/
public TextField getBaseLatTxtFld() {
if (baseLatTxtFld == null) {//GEN-END:|595-getter|0|595-preInit
// write pre-init user code here
baseLatTxtFld = new TextField(LocalizationSupport.getMessage("BASELAT"), "48.5", 32, TextField.DECIMAL);//GEN-LINE:|595-getter|1|595-postInit
// write post-init user code here
}//GEN-BEGIN:|595-getter|2|
return baseLatTxtFld;
}
//</editor-fold>//GEN-END:|595-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: amountNightChioceGrp ">//GEN-BEGIN:|596-getter|0|596-preInit
/**
* Returns an initiliazed instance of amountNightChioceGrp component.
* @return the initialized component instance
*/
public ChoiceGroup getAmountNightChioceGrp() {
if (amountNightChioceGrp == null) {//GEN-END:|596-getter|0|596-preInit
// write pre-init user code here
amountNightChioceGrp = new ChoiceGroup(LocalizationSupport.getMessage("ANAMOUNTNIGHT"), Choice.EXCLUSIVE);//GEN-BEGIN:|596-getter|1|596-postInit
amountNightChioceGrp.append(LocalizationSupport.getMessage("ONETHIRDOFNIGHT"), null);
amountNightChioceGrp.append(LocalizationSupport.getMessage("ONESEVENTHOFNIGHT"), null);
amountNightChioceGrp.setSelectedFlags(new boolean[] { false, false });//GEN-END:|596-getter|1|596-postInit
// write post-init user code here
}//GEN-BEGIN:|596-getter|2|
return amountNightChioceGrp;
}
//</editor-fold>//GEN-END:|596-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Method: isExtremeLatitude ">//GEN-BEGIN:|602-if|0|602-preIf
/**
* Performs an action assigned to the isExtremeLatitude if-point.
*/
public void isExtremeLatitude() {//GEN-END:|602-if|0|602-preIf
// enter pre-if user code here
if (locationPrefer.getLatitude()>89.0) {//GEN-LINE:|602-if|1|603-preAction
// write pre-action user code here
//GEN-LINE:|602-if|2|603-postAction
// write post-action user code here
} else {//GEN-LINE:|602-if|3|604-preAction
// write pre-action user code here
switchDisplayable(getAlert(), getSCanvas());//GEN-LINE:|602-if|4|604-postAction
// write post-action user code here
}//GEN-LINE:|602-if|5|602-postIf
// enter post-if user code here
}//GEN-BEGIN:|602-if|6|
//</editor-fold>//GEN-END:|602-if|6|
//<editor-fold defaultstate="collapsed" desc=" Generated Method: isItFirstTimeCalcMethod ">//GEN-BEGIN:|613-if|0|613-preIf
/**
* Performs an action assigned to the isItFirstTimeCalcMethod if-point.
*/
public void isItFirstTimeCalcMethod() {//GEN-END:|613-if|0|613-preIf
// enter pre-if user code here
if (calPref.getIsItFirstTime()) {//GEN-LINE:|613-if|1|614-preAction
// write pre-action user code here
switchDisplayable(null, getCalculationMethod());//GEN-LINE:|613-if|2|614-postAction
// write post-action user code here
} else {//GEN-LINE:|613-if|3|615-preAction
// write pre-action user code here
switchDisplayable(getAlert(), getSCanvas());//GEN-LINE:|613-if|4|615-postAction
// write post-action user code here
}//GEN-LINE:|613-if|5|613-postIf
// enter post-if user code here
}//GEN-BEGIN:|613-if|6|
//</editor-fold>//GEN-END:|613-if|6|
//<editor-fold defaultstate="collapsed" desc=" Generated Method: isItFirstTime ">//GEN-BEGIN:|616-if|0|616-preIf
/**
* Performs an action assigned to the isItFirstTime if-point.
*/
public void isItFirstTime() {//GEN-END:|616-if|0|616-preIf
// enter pre-if user code here
if (locationPrefer.getIsItFirstTime()) {//GEN-LINE:|616-if|1|617-preAction
// write pre-action user code here
switchDisplayable(null, getContinentList());//GEN-LINE:|616-if|2|617-postAction
// write post-action user code here
} else {//GEN-LINE:|616-if|3|618-preAction
// write pre-action user code here
switchDisplayable(null, getSCanvas());//GEN-LINE:|616-if|4|618-postAction
// write post-action user code here
}//GEN-LINE:|616-if|5|616-postIf
// enter post-if user code here
}//GEN-BEGIN:|616-if|6|
//</editor-fold>//GEN-END:|616-if|6|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: dayLightSavingGrp ">//GEN-BEGIN:|623-getter|0|623-preInit
/**
* Returns an initiliazed instance of dayLightSavingGrp component.
* @return the initialized component instance
*/
public ChoiceGroup getDayLightSavingGrp() {
if (dayLightSavingGrp == null) {//GEN-END:|623-getter|0|623-preInit
// write pre-init user code here
dayLightSavingGrp = new ChoiceGroup(LocalizationSupport.getMessage("DAYLIGHTSAVING"), Choice.MULTIPLE);//GEN-BEGIN:|623-getter|1|623-postInit
dayLightSavingGrp.append(LocalizationSupport.getMessage("DSTON"), null);
dayLightSavingGrp.setSelectedFlags(new boolean[] { false });//GEN-END:|623-getter|1|623-postInit
// write post-init user code here
}//GEN-BEGIN:|623-getter|2|
return dayLightSavingGrp;
}
//</editor-fold>//GEN-END:|623-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: alert ">//GEN-BEGIN:|206-getter|0|206-preInit
/**
* Returns an initiliazed instance of alert component.
* @return the initialized component instance
*/
public Alert getAlert() {
if (alert == null) {//GEN-END:|206-getter|0|206-preInit
// write pre-init user code here
alert = new Alert("alert", LocalizationSupport.getMessage("SAVEDMESSAGE"), null, AlertType.INFO);//GEN-BEGIN:|206-getter|1|206-postInit
alert.setTimeout(Alert.FOREVER);//GEN-END:|206-getter|1|206-postInit
// write post-init user code here
}//GEN-BEGIN:|206-getter|2|
return alert;
}
//</editor-fold>//GEN-END:|206-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: useEstimationCmd ">//GEN-BEGIN:|631-getter|0|631-preInit
/**
* Returns an initiliazed instance of useEstimationCmd component.
* @return the initialized component instance
*/
public Command getUseEstimationCmd() {
if (useEstimationCmd == null) {//GEN-END:|631-getter|0|631-preInit
// write pre-init user code here
useEstimationCmd = new Command(LocalizationSupport.getMessage("useEstimation"), Command.ITEM, 0);//GEN-LINE:|631-getter|1|631-postInit
// write post-init user code here
}//GEN-BEGIN:|631-getter|2|
return useEstimationCmd;
}
//</editor-fold>//GEN-END:|631-getter|2|
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: fixedIshaChoiceGrp ">//GEN-BEGIN:|634-getter|0|634-preInit
/**
* Returns an initiliazed instance of fixedIshaChoiceGrp component.
* @return the initialized component instance
*/
public ChoiceGroup getFixedIshaChoiceGrp() {
if (fixedIshaChoiceGrp == null) {//GEN-END:|634-getter|0|634-preInit
// write pre-init user code here
fixedIshaChoiceGrp = new ChoiceGroup(LocalizationSupport.getMessage("FixedIsha"), Choice.MULTIPLE);//GEN-BEGIN:|634-getter|1|634-postInit
fixedIshaChoiceGrp.append(LocalizationSupport.getMessage("UseFixedIsha")
, null);
fixedIshaChoiceGrp.setSelectedFlags(new boolean[] { false });//GEN-END:|634-getter|1|634-postInit
// write post-init user code here
}//GEN-BEGIN:|634-getter|2|
return fixedIshaChoiceGrp;
}
//</editor-fold>//GEN-END:|634-getter|2|
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: fixedIshaTxtFld ">//GEN-BEGIN:|636-getter|0|636-preInit
/**
* Returns an initiliazed instance of fixedIshaTxtFld component.
* @return the initialized component instance
*/
public TextField getFixedIshaTxtFld() {
if (fixedIshaTxtFld == null) {//GEN-END:|636-getter|0|636-preInit
// write pre-init user code here
fixedIshaTxtFld = new TextField(LocalizationSupport.getMessage("FixedIshaMin"), "90", 32, TextField.NUMERIC);//GEN-LINE:|636-getter|1|636-postInit
// write post-init user code here
}//GEN-BEGIN:|636-getter|2|
return fixedIshaTxtFld;
}
//</editor-fold>//GEN-END:|636-getter|2|
/**
* Returns a display instance.
* @return the display instance.
*/
public Display getDisplay () {
return Display.getDisplay(this);
}
/**
* Exits MIDlet.
*/
public void exitMIDlet() {
switchDisplayable (null, null);
destroyApp(true);
notifyDestroyed();
}
/**
* Called when MIDlet is started.
* Checks whether the MIDlet have been already started and initialize/starts or resumes the MIDlet.
*/
public void startApp() {
if (midletPaused) {
resumeMIDlet ();
} else {
initialize ();
startMIDlet ();
}
midletPaused = false;
}
/**
* Called when MIDlet is paused.
*/
public void pauseApp() {
midletPaused = true;
}
/**
* Called to signal the MIDlet to terminate.
* @param unconditional if true, then the MIDlet has to be unconditionally terminated and all resources has to be released.
*/
public void destroyApp(boolean unconditional) {
}
private void initializeDataBase()
{
locationPrefer= new LocationPrefer();
calPref=new CalculationPrefer ();
optionPref=new OptionPrefer ();
locationPrefer.loadFromDataBase();
calPref.loadCalcPreferInfo();
optionPref.loadOptionDataBase();
warningPref=new WarningPrefer();
forOneDay=new Settings (locationPrefer, calPref,optionPref,warningPref);
// position=new EarthPosition(locationPrefer.getLatitude(),locationPrefer.getLongitude());
}
private void conductNewParameters()
{
forOneDay=new Settings (locationPrefer, calPref,optionPref,warningPref);
//position=new EarthPosition(locationPrefer.getLatitude(),locationPrefer.getLongitude());
if (sCanvas!=null)
{
sCanvas.setPreferences( forOneDay);
}
if (kerahatCanvas!=null)
{
kerahatCanvas.setPreferences(forOneDay);
}
}
private double getMJD0h() {
Calendar now = Calendar.getInstance();
double timeZone;
if (Settings.locationPrefer.getTimeZoneSrc() != 0) {
timeZone = Settings.locationPrefer.getTimeZone();
if (Settings.locationPrefer.getIsDSTOn()) {
timeZone++;
}
} else {
timeZone = now.getTimeZone().getRawOffset() / (60 * 60 * 1000);
}
return APC_Time.Mjd(now.get(Calendar.YEAR), now.get(Calendar.MONTH) + 1, now.get(Calendar.DAY_OF_MONTH), 0, 0, 0) - timeZone / 24.0;
}
private boolean getDSTEstimationbyLat( float lat)
{
int month=Calendar.getInstance().get(Calendar.MONTH)+1;
if (lat>23.5 ) if ( (month>=3) && (month<=10)) return true;
if (lat<-23.5 ) if ( (month<=3) && (month>=10)) return true;
return false;
}
}
/* } else if (command == saveCmd) {
// System.out.println(temkinImsakTxtFld.getString());
calPref.setCalculationParameters(
Byte.parseByte(getTemkinImsakTxtFld().getString()),
Byte.parseByte(getTemkinGunesTxtFld().getString()),
Byte.parseByte(getTemkinOgleTxtFld().getString()),
Byte.parseByte(getTemkinAsrTxtFld().getString()),
Byte.parseByte(getTemkinMagribTxtFld().getString()),
Byte.parseByte(getTemkinYatsiTxtFld().getString()),
Double.parseDouble(getDawnAngleTxtFld().getString()),
Double.parseDouble(getDuskAngleTxtFld().getString()),
(byte)getSectChoiceGrp().getSelectedIndex());
/* if (calPref.getCalculationMethod()==6)
{
getDawnAngleTxtFld().setConstraints(TextField.ANY | TextField.PLAIN);
getDuskAngleTxtFld().setConstraints(TextField.ANY | TextField.PLAIN);
}*/
/* calPref.saveCalcPreferInfo();
//initialSTFromObject();
//killOldTimerTask();
conductNewParameters();
// calculateSalatTimes();
//updateCanvasText ();
// setWarnings ();
// write pre-action user code here
isExtremeLatitude();
// write post-action user code here
} else if (command == useEstimationCmd) {
// write pre-action user code here
switchDisplayable(null, getExtremeLatitudes());
calPref.loadCalcPreferInfo();
estimationChoiceGrp.setSelectedIndex(calPref.getEstimationMethod(), true);
baseLatTxtFld.setString(calPref.getBaseLatitude()+"");
amountNightChioceGrp.setSelectedIndex(calPref.getAmountOfNight(),true);
fixedIshaTxtFld.setString(calPref.getFixedIshaMin()+"" );
fixedIshaChoiceGrp.setSelectedIndex(0,calPref.isFixedIsha());
// write post-action user code here
} //LocalizationSupport.getMessage("useEstimation")
*/